| Safe Haskell | Safe-Inferred |
|---|
Options.Applicative.Internal
Documentation
Constructors
| forall a . Context [String] (ParserInfo a) | |
| NullContext |
class (Alternative m, MonadPlus m) => MonadP m whereSource
Methods
setContext :: Maybe String -> ParserInfo a -> m ()Source
setParser :: Maybe String -> Parser a -> m ()Source
getPrefs :: m ParserPrefsSource
missingArgP :: ParseError -> Completer -> m aSource
tryP :: m a -> m (Either ParseError a)Source
errorP :: ParseError -> m aSource
Instances
data ParseError Source
Constructors
| ErrorMsg String | |
| InfoMsg String | |
| ShowHelpText | |
| UnknownError |
Instances
hoistMaybe :: MonadPlus m => Maybe a -> m aSource
hoistEither :: MonadP m => Either ParseError a -> m aSource
runP :: P a -> ParserPrefs -> (Either ParseError a, Context)Source
data Completion a Source
runCompletion :: Completion r -> ParserPrefs -> Maybe (Either SomeParser Completer)Source
data SomeParser Source
Constructors
| forall a . SomeParser (Parser a) |
data ComplError Source
Constructors
| ComplParseError String | |
| ComplExit |