What module does one use to parse standard GNU style command line options in Haskell?
In Perl I would use
The Haskell Wiki has a page called "High-level option handling with
GetOpt"; looks promising.
Hm, tried mimicking the code on that page, but got lost at
startOptions, where I thought I could put in my defaults, but that failed miserably.
Maybe I'll just look at the documentation of the
System.Console.GetOpt module and do it the ugly, repetitious, error-prone way.
Ok, I can mimick the stuff in the documentation of
System.Console.GetOpt, but I still don't get how I actually look at the values supplied (or defaults).
Maybe I should read this: Command line options in Haskell.
Using association lists, as shown on the Haskell wiki, is more in line with how I would do in Perl (and how I think of command line options), I think.