Portability | portable |
---|---|
Maintainer | jmillikin@gmail.com |
- 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.
ParseError | |
|
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
.