| Portability | portable |
|---|---|
| Maintainer | jmillikin@gmail.com |
Data.Attoparsec.Enumerator
Description
- data ParseError = ParseError {
- errorContexts :: [String]
- errorMessage :: String
- iterParser :: Monad m => Parser a -> Iteratee ByteString m a
Documentation
data ParseError
The context and message from a Fail value.
Constructors
| ParseError | |
Fields
| |
Instances
iterParser :: Monad m => Parser a -> Iteratee ByteString m a
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.