Module

Options.Applicative.Extra

Package
purescript-optparse
Repository
f-o-a-m/purescript-optparse

#helper Source

helper :: forall a. Parser (a -> a)

A hidden "helper" option which always fails.

#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.