
18 Oct
2007
18 Oct
'07
1:07 p.m.
Hi
As an Haskell beginner, and considering this may be compiler dependent, I shall ask it on this list.
It's standard across all implementations.
How can I access command line arguments from my main function in my Main module?
import System.Environment main = do args <- getArgs print args You can also do in GHCi and Hugs: :main test arguments To test your code with argument values. Thanks Neil