Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Options.Applicative.Internal
Documentation
data Context
Constructors
forall a . Context String (ParserInfo a) |
class (Alternative m, MonadPlus m) => MonadP m where
Methods
enterContext :: String -> ParserInfo a -> m ()
exitContext :: m ()
getPrefs :: m ParserPrefs
missingArgP :: ParseError -> Completer -> m a
tryP :: m a -> m (Either ParseError a)
errorP :: ParseError -> m a
exitP :: Parser b -> Either ParseError a -> m a
Instances
data ParseError
Constructors
ErrorMsg String | |
InfoMsg String | |
ShowHelpText | |
UnknownError | |
MissingError (OptTree (Chunk Doc)) |
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 |
contextNames :: [Context] -> [String]
data ListT m a
data NondetT m a