| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OptparseApplicative.Simple.Parser
Documentation
Specification of a command line arguments parser and help generator.
Has instances of Functor, Applicative and Alternative,
which you can use for composition.
Arguments
| :: Text | Long name |
| -> Maybe Char | Possible short name |
| -> Maybe Text | Possible description |
| -> Maybe (a, Text) | Possible default value with its text representation to display in the generated help |
| -> Parser a | Attoparsec parser of the value. The "attoparsec-data" package provides such parsers for a lot of standard types |
| -> Parser a |
Definition of a single argument.