| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Options.Applicative.Internal
Documentation
Instances
| Alternative P # | |
| Applicative P # | |
| Functor P # | |
| Monad P # | |
| MonadPlus P # | |
| MonadP P # | |
Defined in Options.Applicative.Internal Methods enterContext :: String -> ParserInfo a -> P () # exitContext :: P () # getPrefs :: P ParserPrefs # missingArgP :: ParseError -> Completer -> P a # errorP :: ParseError -> P a # exitP :: IsCmdStart -> ArgPolicy -> Parser b -> Maybe a -> P a # | |
class (Alternative m, MonadPlus m) => MonadP (m :: Type -> Type) where #
Methods
enterContext :: String -> ParserInfo a -> m () #
exitContext :: m () #
getPrefs :: m ParserPrefs #
missingArgP :: ParseError -> Completer -> m a #
errorP :: ParseError -> m a #
exitP :: IsCmdStart -> ArgPolicy -> Parser b -> Maybe a -> m a #
Instances
| MonadP Completion # | |
Defined in Options.Applicative.Internal Methods enterContext :: String -> ParserInfo a -> Completion () # exitContext :: Completion () # getPrefs :: Completion ParserPrefs # missingArgP :: ParseError -> Completer -> Completion a # errorP :: ParseError -> Completion a # exitP :: IsCmdStart -> ArgPolicy -> Parser b -> Maybe a -> Completion a # | |
| MonadP P # | |
Defined in Options.Applicative.Internal Methods enterContext :: String -> ParserInfo a -> P () # exitContext :: P () # getPrefs :: P ParserPrefs # missingArgP :: ParseError -> Completer -> P a # errorP :: ParseError -> P a # exitP :: IsCmdStart -> ArgPolicy -> Parser b -> Maybe a -> P a # | |
data ParseError #
Constructors
| ErrorMsg String | |
| InfoMsg String | |
| ShowHelpText (Maybe String) | |
| UnknownError | |
| MissingError IsCmdStart SomeParser | |
| ExpectsArgError String | |
| UnexpectedError String SomeParser |
Instances
| Monoid ParseError # | |
Defined in Options.Applicative.Types Methods mempty :: ParseError # mappend :: ParseError -> ParseError -> ParseError # mconcat :: [ParseError] -> ParseError # | |
| Semigroup ParseError # | |
Defined in Options.Applicative.Types Methods (<>) :: ParseError -> ParseError -> ParseError # sconcat :: NonEmpty ParseError -> ParseError # stimes :: Integral b => b -> ParseError -> ParseError # | |
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 #
Instances
runCompletion :: Completion r -> ParserPrefs -> Maybe (Either (SomeParser, ArgPolicy) Completer) #
contextNames :: [Context] -> [String] #
hoistList :: Alternative m => [a] -> m a #
data NondetT (m :: Type -> Type) a #
Instances
| MonadTrans NondetT # | |
Defined in Options.Applicative.Internal | |
| Monad m => Alternative (NondetT m) # | |
| Monad m => Applicative (NondetT m) # | |
Defined in Options.Applicative.Internal | |
| Monad m => Functor (NondetT m) # | |
| Monad m => Monad (NondetT m) # | |
| Monad m => MonadPlus (NondetT m) # | |