list-t-attoparsec-0.2.0.0: An "attoparsec" adapter for "list-t"

Safe HaskellNone
LanguageHaskell2010

ListT.Attoparsec

Synopsis

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.