pipes-attoparsec-0.0.2: Utilities to convert a parser into a pipe.

Safe HaskellSafe-Infered

Control.Pipe.Attoparsec

Synopsis

Documentation

data ParseError Source

A parse error as returned by Attoparsec.

Constructors

ParseError 

Fields

errorContexts :: [String]

Contexts where the error occurred.

errorMessage :: String

Error message.

DivergentParser

Returned if a parser does not terminate when its input is exhausted.

pipeParser :: (Monoid a, Monad m) => (a -> IResult a r) -> Pipe a x m (a, Either ParseError r)Source

Convert a parser continuation into a Pipe.

To get a parser continuation from a Parser, use the parse function of the appropriate Attoparsec module.