Accpeting command-line arguments in GHC/Hugs

Sven Panne Sven.Panne@informatik.uni-muenchen.de
Tue, 23 Jan 2001 23:15:10 +0100


Shlomi Fish wrote:
> How can I read the command-line arguments passed to the program. [...]

As already pointed out, System.getArgs is the basically the way to go.
If you want to use the list returned by it comfortably, see:
http://www.haskell.org/ghc/docs/latest/set/sec-util.html#SEC-GETOPT

Cheers,
   Sven