attoparsec-enumerator-0.2.0.4: Convert an Attoparsec parser into an iterateeSource codeContentsIndex
Data.Attoparsec.Enumerator
Portabilityportable
Maintainerjmillikin@gmail.com
Description
Synopsis
data ParseError = ParseError {
errorContexts :: [String]
errorMessage :: String
}
iterParser :: Monad m => Parser a -> Iteratee ByteString m a
Documentation
data ParseError Source
The context and message from a Fail value.
Constructors
ParseError
errorContexts :: [String]
errorMessage :: String
show/hide Instances
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.

Produced by Haddock version 2.6.1