[Haskell-cafe] Program Command Line Arguments

Ross Paterson ross at soi.city.ac.uk
Sun Mar 11 08:00:21 EDT 2007

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.

More information about the Libraries mailing list