attoparsec-text-enumerator-0.2.0.1: (deprecated)

Portabilityportable
Maintainerfelipe.lessa@gmail.com

Data.Attoparsec.Text.Enumerator

Description

Convert an attoparsec-text parser into an iteratee. This package is heavily based on attoparsec-enumerator for the original attoparsec on ByteString.

Synopsis

Documentation

data ParseError Source

The context and message from a Fail value.

Constructors

ParseError 

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

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

If parsing fails, the iteratee's error value will contain a ParseError.