!J      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI4Full-featured command-line argument parsing library.(c) 2007 Bart Massey BSD-style (see the file COPYING)#Bart Massey <bart.massey@gmail.com>stableportableSafe2=?? parseargs2 instance for opening a file from its string name. parseargsFunction to open the file parseargs9Type of values that can be parsed by the argument parser. parseargs+Fetch an argument's value if it is present.  parseargs'Fetch the value of a required argument.  parseargsJClass for building parse control information, for backward compatibility.  parseargs;Record containing the collective parse control information. parseargsLevel of completeness of parse. parseargsHandling of dashes in parse. parseargsWhether to always treat an unknown argument beginning with "-" as an error, or to allow it to be used as a positional argument when possible. parseargswIf an argument begins with a "-", it will always be treated as an error unless it corresponds to a flag description. parseargsIf an argument beginning with a "-" is unrecognized as a flag, treat it as a positional argument if possible. Otherwise it is an error. parseargsHow "sloppy" the parse is. parseargsXAny extraneous arguments (unparseable from description) will cause the parser to fail. parseargsTrailing extraneous arguments are permitted, and will be skipped, saved, and returned. The constructor argument is the name of the args. parseargsSAll extraneous arguments are permitted, and will be skipped, saved, and returned. parseargsThis exception is raised with an appropriate error message when argument parsing fails. The first argument is the usage message, the second the actual error message from the parser. parseargsThe data structure 1G produces. There is a should-be-hidden field that describes the parse. parseargsIThe argument parse, only listed here to work around a Haddock bug. See  -https://github.com/haskell/haddock/issues/456. parseargsBasename of 0th argument. parseargsFull usage string. parseargs Remaining unprocessed arguments.J parseargs5The type of the mapping from argument index to value.K parseargs+The "kinds of values" an argument can have.L parseargs(For simple present vs not-present flags. parseargsInformation specific to an argument carrying a datum. This is an opaque type, whose instances are constructed using the pseudo-constructors -, ., and /.M parseargsPrint name of datum.N parseargsType of datum.O parseargsDatum is not required.  parseargsdThe types of an argument carrying data. The constructor argument is used to carry a default value.The constructor argument should really be hidden. Values of this type are normally constructed within the pseudo-constructors pseudo-constructors -, ., and /;, to which only the constructor function itself is passed.& parseargsMThe description of an argument, suitable for messages and for parsing. The +X field is used both for flags with a data argument, and for positional data arguments.There are two cases: ;The argument is a flag, in which case at least one of ) and * is provided;7The argument is positional, in which case neither ) nor * are provided, but + is. If none of ), *, or +1 are provided, this is an error. See also the -, ., and /. functions below, which are used to generate +.( parseargs7Connects the input description to the output argument.) parseargsOne-character flag name.* parseargs"Long name" of flag.+ parseargsDatum description., parseargsDocumentation for the argument.- parseargs Generate the +% for the given non-optional argument.. parseargs Generate the +1 for the given optional argument with no default./ parseargs Generate the +9 for the given optional argument with the given default.P parseargs-True if the described argument is positional.Q parseargs)True if the described argument is a flag.R parseargs+True if the described argument is optional.S parseargs)Return the value of a defaulted argument.T parseargs)There's probably a better way to do this.U parseargs*Format the described argument as a string.V parseargs%Filter out the empty keys for a hash.W parseargsGFail with an error if the argument description is bad for some reason.X parseargsMake a keymap.Y parseargs-Make a keymap for looking up a flag argument.Z parseargs The iteration function is given a state and a list, and expected to produce a new state and list. The function is again invoked with the resulting state and list. When the supplied function returns the empty list, this function returns the final state produced.0 parseargsCGenerate a usage error with the given supplementary message string.1 parseargs&Given a description of the arguments, 1Z produces a map from the arguments to their "values" and some other useful byproducts. 1 requires that the argument descriptions occur in the order 1) flag arguments, then 2) positional arguments; otherwise a runtime error will be thrown.2 parseargswMost of the time, you just want the environment's arguments and are willing to live in the IO monad. This version of 1= digs the pathname and arguments out of the system directly.3 parseargsICheck whether a given optional argument was supplied. Works on all types.4 parseargs  Deprecated Return the [& value, if any, of the given argument.5 parseargs  Deprecated Return the \& value, if any, of the given argument.6 parseargs  Deprecated Return the ]& value, if any, of the given argument.7 parseargs  Deprecated Return the ^& value, if any, of the given argument.8 parseargs  Deprecated Return the _& value, if any, of the given argument.9 parseargs  Deprecated Treat the [X value, if any, of the given argument as a file handle and try to open it as requested.: parseargs Treat the [ value, if any, of the given argument as a file handle and try to open it as requested. If not present, substitute the appropriate one of stdin or stdout as indicated by .; parseargsReturn the filename part of a pathname. Unnecessarily efficient implementation does a single tail-call traversal with no construction.< parseargsCGenerate a usage error with the given supplementary message string. parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value if present.  parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value.  parseargs Build an   structure from the given info.- parseargsDatum print name. parseargsType constructor for datum. parseargs Result is +-ready.. parseargsDatum print name. parseargsType constructor for datum. parseargs Result is +-ready./ parseargsDatum print name. parseargsType constructor for datum. parseargsDatum default value. parseargs Result is +-ready.P parseargs Argument. parseargsTrue if argument is positional.Q parseargs Argument. parseargsTrue if argument is a flag.R parseargs Argument. parseargs,False if argument is required to be present.` parseargs Argument. parseargs+True if argument is required to be present.S parseargs Argument. parseargsOptional default value.U parseargsArgument to be described. parseargsString describing argument.V parseargs$List of (optional key, value) pairs. parseargsPairs with actual keys.W parseargsError message. parseargsBogus polymorphic result.X parseargs=List of key-value pairs. Will be checked for duplicate keys. parseargsKey-value map.Y parseargs!Mapping from argdesc to flag key. parseargsList of argdesc. parseargsMap from key to argdesc.Z parseargsFunction to iterate. parseargsInitial state. parseargs Initial list. parseargs Final state.0 parseargsUsage message. parseargsSpecific error message. parseargsBogus polymorphic result.1 parseargsConfiguration for parse. parseargsArgument descriptions. parseargsFull program pathname. parseargsIncoming program argument list. parseargs Outgoing argument parse results.2 parseargs Degree of completeness of parse. parseargsArgument descriptions. parseargsArgument parse results.3 parseargsParsed arguments. parseargs$Index of argument to be checked for. parseargsTrue if the arg was present.4 parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value if present.5 parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value if present.6 parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value if present.7 parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value if present.8 parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargsArgument value if present.9 parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargs%IO mode the file should be opened in. parseargs4Handle of opened file, if the argument was present.: parseargsParsed arguments. parseargs"Index of argument to be retrieved. parseargs3IO mode the file should be opened in. Must not be a. parseargsAppropriate file handle.; parseargs Pathname. parseargs Rightmost component of pathname.=  !"#$%&'()*+,-./0123456789:;<=&'()*+, !"#$% -./123 49:5678;0<b      !"#$%%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`^_a^_bcde(parseargs-0.2.0.9-J3bIbA9RdCt9X1ORaYCowESystem.Console.ParseArgsbase GHC.IO.IOMode AppendMode WriteModeReadModeIOMode ArgFileOpener argFileOpenerArgTypegetArggetRequiredArgAPCData getAPCDataArgsParseControl apcCompleteapcDashArgsDash ArgsHardDash ArgsSoftDash ArgsComplete ArgsTrailingArgsInterspersedParseArgsExceptionArgs__args argsProgName argsUsageargsRestDataArgArgtype ArgtypeStringArgtypeInteger ArgtypeInt ArgtypeDouble ArgtypeFloatArgargIndexargAbbrargNameargDataargDescargDataRequiredargDataOptionalargDataDefaulted parseError parseArgs parseArgsIOgotArg getArgString getArgInteger getArgInt getArgDouble getArgFloat getArgFile getArgStdiobaseName usageError$fShowParseArgsException$fExceptionParseArgsException$fAPCDataArgsComplete$fAPCDataArgsParseControl$fArgTypeFloat$fArgTypeDouble $fArgTypeInt$fArgTypeInteger $fArgType[] $fArgType()$fArgTypeArgFileOpener$fEqParseArgsException $fEqArgsDash ArgRecordArgval ArgvalFlag dataArgNamedataArgArgtypedataArgOptionalarg_posnarg_flag arg_optionalarg_default_valueperhaps arg_string filter_keys argdesc_errorkeymap_from_list make_keymapexhaustGHC.BaseString integer-gmpGHC.Integer.TypeIntegerghc-prim GHC.TypesIntDoubleFloat arg_required ReadWriteMode