Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Parsing m => SliceParsing m where
- slicedWith :: (a -> Text -> b) -> m a -> m b
- position :: m Position
- sliced :: SliceParsing m => m a -> m Text
- class Parsing m => RecoveryParsing m where
- withRecovery :: (ErrorInfo -> m a) -> m a -> m a
- careted :: (SliceParsing m, Applicative m) => m a -> m (Position, a)
- spanned :: (SliceParsing m, Applicative m) => m a -> m (Span, a)
- input :: Parser Text
- highlights :: Parser Highlights
Documentation
class Parsing m => SliceParsing m where Source #
slicedWith :: (a -> Text -> b) -> m a -> m b Source #
position :: m Position Source #
position :: (MonadTrans t, Monad n, SliceParsing n, m ~ t n) => m Position Source #
Instances
SliceParsing Parser Source # | |
(SliceParsing m, MonadPlus m) => SliceParsing (IdentityT m) Source # | |
(SliceParsing m, MonadPlus m) => SliceParsing (StateT s m) Source # | |
(SliceParsing m, MonadPlus m) => SliceParsing (StateT s m) Source # | |
(SliceParsing m, MonadPlus m, Monoid w) => SliceParsing (WriterT w m) Source # | |
(SliceParsing m, MonadPlus m, Monoid w) => SliceParsing (WriterT w m) Source # | |
(SliceParsing m, MonadPlus m) => SliceParsing (ReaderT e m) Source # | |
(SliceParsing m, MonadPlus m, Monoid w) => SliceParsing (RWST r w s m) Source # | |
(SliceParsing m, MonadPlus m, Monoid w) => SliceParsing (RWST r w s m) Source # | |
sliced :: SliceParsing m => m a -> m Text Source #
class Parsing m => RecoveryParsing m where Source #
withRecovery :: (ErrorInfo -> m a) -> m a -> m a Source #
Instances
RecoveryParsing Parser Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m) => RecoveryParsing (IdentityT m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m) => RecoveryParsing (StateT s m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m) => RecoveryParsing (StateT s m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m, Monoid w) => RecoveryParsing (WriterT w m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m, Monoid w) => RecoveryParsing (WriterT w m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m) => RecoveryParsing (ReaderT e m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m, Monoid w) => RecoveryParsing (RWST r w s m) Source # | |
Defined in Text.Parsix.Combinators | |
(RecoveryParsing m, MonadPlus m, Monoid w) => RecoveryParsing (RWST r w s m) Source # | |
Defined in Text.Parsix.Combinators |
careted :: (SliceParsing m, Applicative m) => m a -> m (Position, a) Source #
spanned :: (SliceParsing m, Applicative m) => m a -> m (Span, a) Source #