Created
April 7, 2020 01:38
-
-
Save classmember/7fb4096d84e5c8bd4f6ef5318798f05a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack runhaskell | |
-- getUser.hs | |
import Data.Maybe | |
import System.Environment | |
main = do | |
user <- lookupEnv "USER" | |
print $ fromMaybe "" user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment