Re: [Haskell-cafe] Program Command Line Arguments

11 Mar
2007
11 Mar
'07
8 a.m.
On Sun, Mar 11, 2007 at 12:51:16PM +1100, Donald Bruce Stewart wrote:
Dave:
How are command line arguments to a ghc-compiled program accessed in Haskell? Or is that even possible?
Simplest: System.Environment:getArgs Complex: System.Console.GetOpt
Which suggests that these belong in the same place in the module hierarchy. Certainly GetOpt doesn't belong with Readline and SimpleLineEditor. I'd suggest System.Console.GetOpt -> System.Environment.GetOpt, or to create a new node in the hierarchy.
6646
Age (days ago)
6646
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ross Paterson