Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Options.Applicative.Internal
Documentation
data Context
Constructors
forall a . Context [String] (ParserInfo a) | |
NullContext |
class (Alternative m, MonadPlus m) => MonadP m where
Methods
setContext :: Maybe String -> ParserInfo a -> m ()
getPrefs :: m ParserPrefs
missingArgP :: ParseError -> Completer -> m a
tryP :: m a -> m (Either ParseError a)
errorP :: ParseError -> m a
Instances
hoistMaybe :: MonadPlus m => Maybe a -> m a
hoistEither :: MonadP m => Either ParseError a -> m a
runP :: P a -> ParserPrefs -> (Either ParseError a, Context)
data Completion a
runCompletion :: Completion r -> ParserPrefs -> Maybe (Either SomeParser Completer)
data SomeParser
Constructors
forall a . SomeParser (Parser a) |
data ComplError
Constructors
ComplParseError String | |
ComplExit |
data ListT m a
data NondetT m a