getArgs

Greg Michaelson greg at cee.hw.ac.uk
Thu Nov 8 04:49:32 EST 2001


Using ghc-5.03, getArgs only returns the first command line argument.

main = do putStrLn version
           args <- getArgs
           putStrLn (show args)
           ...

Best wishes

Greg Michaelson pp Phil Trinder




More information about the Glasgow-haskell-bugs mailing list