1 2 3 4 5 6 7 8 9 10
import System.Environment main :: IO () main = do args <- getArgs mapM_ (putStrLn . f) args f :: String -> String f str = "Arg: " ++ show str