úÎ)¿(¦     unknown experimentalaenor.realm@gmail.com Safe-Inferreddiguration type used to construct Option list and, later, check for mandatory options and arguments. XA validation flag. Ignored when building a option list but stored for future reference. =An option list which will result in a assoc list of options. 0We are using a no-processing, grab and run away ArgDesc . All options' arguments are required. ?An option is a string-tagged string value to be processed with Data.Map functions. FA result of all those musings is a plain string-to-string dictionary. fMake an option with a value. Option argument value will be captured and tagged  with an option name.  arg "user" EMake a valueless option. The value captured will be an empty string.  noArg "debug" &Generate and show usage example using . and lists of required options and arguments. VRun getOpt against option list. Show errors and usage notice if something goes wrong. NExtract values and validate against lists of mandatory arguments and options.  This adds a default  '-h/--help' option. Low level uses getOpt'Ds facilities to prepare option list and offers maximum flexibility: ^ options = [ Option ['v'] ["verbose", "debug"] (noArg "debug") "Dump all the stuff flying." P , Option ['d'] ["date"] (arg "date") "Report date." W , Option ['c'] ["conf"] (arg "conf") "Configuration file." Z , Option ['s'] ["section"] (arg "section") "Configuration section."  ]  E (opts, args) <- getOptsArgs options ["conf", "section"] ["command"]  Process a iguration into a list of  options. ? Required options and arguments are enforced, but defaults aren't being into a result. Z let options = makeOptions [ (noArg, "verbose", Optional, "Dump all the stuff flying.") M , (arg, "date", Required, "Report date.")] S , (arg, "conf", Required, "Configuration file.") V , (arg, "section", Default "", "Configuration section.")  ]  S (opts, args) <- getOptsArgs (makeOptions options) ["conf", "section"] ["command"]  Construct an % from a less verbose list of values. Magic. 0(opts, args) <- getUsingConf options ["command"] print opts[fromList [("date", "2012-08-23"), ("conf", "/usr/local/etc/service.conf"), ("section", "")]/Process configuration into function arguments.           getopt-simple-0.1.0.2System.Console.GetOpt.SimpleConfModeDefaultOptionalRequired FlagDescr FlagMakerFlagOptionsargnoArg showUsage processOpts getOptsArgs makeOptionsoption getUsingConffromConfbaseSystem.Environment getProgNameSystem.Console.GetOptgetOptOption