| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Options.Applicative.Internal
Documentation
Constructors
| forall a . Context [String] (ParserInfo a) | |
| NullContext |
class (Alternative m, MonadPlus m) => MonadP m where Source
Methods
setContext :: Maybe String -> ParserInfo a -> m () Source
getPrefs :: m ParserPrefs Source
missingArgP :: ParseError -> Completer -> m a Source
tryP :: m a -> m (Either ParseError a) Source
errorP :: ParseError -> m a Source
Instances
data ParseError Source
Constructors
| ErrorMsg String | |
| InfoMsg String | |
| ShowHelpText | |
| UnknownError |
Instances
hoistMaybe :: MonadPlus m => Maybe a -> m a Source
hoistEither :: MonadP m => Either ParseError a -> m a Source
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 |