Created
September 6, 2014 15:14
-
-
Save fujimura/b65367aa9ec707bed947 to your computer and use it in GitHub Desktop.
This file contains 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
import System.Environment (getArgs, getProgName) | |
main1 :: IO () | |
main1 = getArgs >>= \args -> | |
getProgName >>= \progn -> | |
print $ progn ++ " " ++ show args | |
main2 :: IO () | |
main2 = do | |
args <- getArgs | |
progn <- getProgName | |
print $ progn ++ " " ++ show args | |
main :: IO () | |
main = do | |
main1 | |
main2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment