Safe Haskell | Safe-Inferred |
---|
Options.Applicative.Internal
Documentation
Constructors
Context :: [String] -> ParserInfo a -> Context | |
NullContext :: Context |
class (Alternative m, MonadPlus m) => MonadP m whereSource
Methods
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
Instances
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
Constructors
SomeParser :: Parser a -> SomeParser |