Accpeting command-line arguments in GHC/Hugs

Shlomi Fish shlomif@vipe.technion.ac.il
Tue, 23 Jan 2001 20:56:49 +0200 (IST)


How can I read the command-line arguments passed to the program. For
instance, if I run my compiled program by typing "./foo hello -o
file.txt", I wish to access the list ["hello", "-o", "file.txt"] somehow.

TIA,

	Shlomi Fish



----------------------------------------------------------------------
Shlomi Fish        shlomif@vipe.technion.ac.il 
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       shlomif@techie.com

The prefix "God Said" has the extraordinary logical property of 
converting any statement that follows it into a true one.