attoparsec-enumerator-0.2.0.5: Pass input from an enumerator to an Attoparsec parser.

Portabilityportable
Maintainerjmillikin@gmail.com

Data.Attoparsec.Enumerator

Description

 

Synopsis

Documentation

data ParseError Source

The context and message from a Fail value.

Constructors

ParseError 

iterParser :: Monad m => Parser a -> Iteratee ByteString m aSource

Convert an Attoparsec Parser into an Iteratee. The parser will be streamed bytes until it returns Done or Fail.

If parsing fails, a ParseError will be thrown with throwError. Use catchError to catch it.