Module
Options.Applicative.Extra
- Package
- purescript-optparse
- Repository
- f-o-a-m/purescript-optparse
#hsubparser Source
hsubparser :: forall a. Mod CommandFields a -> Parser a
Builder for a command parser with a "helper" option attached.
#execParser Source
execParser :: forall a. ParserInfo a -> Effect a
Run a program description.
#customExecParser Source
customExecParser :: forall a. ParserPrefs -> ParserInfo a -> Effect a
Run a program description with custom preferences.
#execParserPure Source
execParserPure :: forall a. ParserPrefs -> ParserInfo a -> Array String -> ParserResult a
The most general way to run a program description in pure code.
#getParseResult Source
getParseResult :: forall a. ParserResult a -> Maybe a
Extract the actual result from a ParserResult
value.
#handleParseResult Source
handleParseResult :: forall a. ParserResult a -> Effect a
Handle ParserResult
.
#parserFailure Source
parserFailure :: forall a. ParserPrefs -> ParserInfo a -> ParseError -> Array Context -> ParserFailure ParserHelp
Generate a ParserFailure
from a ParseError
in a given Context
.
- Modules
- Options.
Applicative - Options.
Applicative. BashCompletion - Options.
Applicative. Builder - Options.
Applicative. Builder. Completer - Options.
Applicative. Builder. Internal - Options.
Applicative. Common - Options.
Applicative. Extra - Options.
Applicative. Help - Options.
Applicative. Help. Chunk - Options.
Applicative. Help. Core - Options.
Applicative. Help. Levenshtein - Options.
Applicative. Help. Pretty - Options.
Applicative. Help. Types - Options.
Applicative. Internal - Options.
Applicative. Internal. Utils - Options.
Applicative. Types - Text.
PrettyPrint. Leijen