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

Portabilityportable
Maintainerjmillikin@gmail.com
Safe HaskellNone

Data.Attoparsec.Enumerator

Description

 

Synopsis

Documentation

data ParseError

The context and message from a Fail value.

Constructors

ParseError 

Fields

errorContexts :: [String]
 
errorMessage :: String
 

Instances

Show ParseError 
Typeable ParseError 
Exception ParseError 

class AttoparsecInput a

A class of types which may be consumed by an Attoparsec parser.

Since: 0.3

Instances

iterParser :: (AttoparsecInput a, Monad m) => Parser a b -> Iteratee a m b

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.