Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Options.Applicative.Internal
Documentation
data Context where
Constructors
Context :: [String] -> ParserInfo a -> Context | |
NullContext :: Context |
class (Alternative m, MonadPlus m) => MonadP m where
Methods
setContext :: Maybe String -> ParserInfo a -> m ()
setParser :: Maybe String -> Parser 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 where
Constructors
SomeParser :: Parser a -> SomeParser |
data ComplError
Constructors
ComplParseError String | |
ComplExit |
data ListT m a
data NondetT m a