Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
newtype RunT ctx posMark elem altHelp m a Source #
Instances
MonadTrans (RunT ctx posMark elem altHelp) Source # | |
Defined in Language.Parser.Ptera.Runner.RunT | |
Monad m => Monad (RunT ctx posMark elem altHelp m) Source # | |
Defined in Language.Parser.Ptera.Runner.RunT | |
Functor m => Functor (RunT ctx posMark elem altHelp m) Source # | |
Monad m => Applicative (RunT ctx posMark elem altHelp m) Source # | |
Defined in Language.Parser.Ptera.Runner.RunT pure :: a -> RunT ctx posMark elem altHelp m a # (<*>) :: RunT ctx posMark elem altHelp m (a -> b) -> RunT ctx posMark elem altHelp m a -> RunT ctx posMark elem altHelp m b # liftA2 :: (a -> b -> c) -> RunT ctx posMark elem altHelp m a -> RunT ctx posMark elem altHelp m b -> RunT ctx posMark elem altHelp m c # (*>) :: RunT ctx posMark elem altHelp m a -> RunT ctx posMark elem altHelp m b -> RunT ctx posMark elem altHelp m b # (<*) :: RunT ctx posMark elem altHelp m a -> RunT ctx posMark elem altHelp m b -> RunT ctx posMark elem altHelp m a # |
runT :: forall ctx posMark elem altHelp m a. T posMark elem m => RunT ctx posMark elem altHelp m (ParseResult posMark altHelp a) Source #
data ParseResult posMark altHelp a Source #
Parsed a | |
ParseFailed posMark (FailedReason altHelp) |
Instances
Functor (ParseResult posMark altHelp) Source # | |
Defined in Language.Parser.Ptera.Runner.RunT fmap :: (a -> b) -> ParseResult posMark altHelp a -> ParseResult posMark altHelp b # (<$) :: a -> ParseResult posMark altHelp b -> ParseResult posMark altHelp a # | |
(Show a, Show posMark, Show altHelp) => Show (ParseResult posMark altHelp a) Source # | |
Defined in Language.Parser.Ptera.Runner.RunT showsPrec :: Int -> ParseResult posMark altHelp a -> ShowS # show :: ParseResult posMark altHelp a -> String # showList :: [ParseResult posMark altHelp a] -> ShowS # |
data Context ctx posMark elem altHelp Source #
Context | |
|
initialContext :: T ctx elem altHelp -> ctx -> StartNum -> Maybe (Context ctx posMark elem altHelp) Source #