Safe Haskell | None |
---|---|
Language | Haskell2010 |
ListT.Attoparsec
- data ParsingFailure = ParsingFailure !String ![String]
- textParser :: MonadThrow m => Parser a -> Transformation m Text a
Documentation
data ParsingFailure Source
A text message and a list of contexts, as per the failure in "attoparsec".
Constructors
ParsingFailure !String ![String] |
textParser :: MonadThrow m => Parser a -> Transformation m Text a Source
Given a text parser, produces
a transformation of a stream of text chunks into a stream of parsed results.
In case of a parsing failure it raises a ParsingFailure
error in the base monad.