Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
class (Alternative m, MonadPlus m) => MonadP m where Source
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
data ParseError Source
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
forall a . SomeParser (Parser a) |