Safe Haskell | Safe-Inferred |
---|
Documentation
Context :: [String] -> ParserInfo a -> Context | |
NullContext :: Context |
class (Alternative m, MonadPlus m) => MonadP m whereSource
setContext :: Maybe String -> ParserInfo a -> m ()Source
setParser :: Maybe String -> Parser a -> m ()Source
getPrefs :: m ParserPrefsSource
missingArgP :: ParseError -> Completer -> m aSource
tryP :: m a -> m (Either ParseError a)Source
errorP :: ParseError -> m aSource
hoistMaybe :: MonadPlus m => Maybe a -> m aSource
hoistEither :: MonadP m => Either ParseError a -> m aSource
runP :: P a -> ParserPrefs -> (Either ParseError a, Context)Source
data Completion a Source
runCompletion :: Completion r -> ParserPrefs -> Maybe (Either SomeParser Completer)Source
data SomeParser whereSource
SomeParser :: Parser a -> SomeParser |