attoparsec-enumerator-0.2.0.1: Convert an Attoparsec parser into an iteratee

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, the iteratee's error value will contain a ParseError.