Portability | portable |
---|---|
Maintainer | jmillikin@gmail.com |
Safe Haskell | None |
- data ParseError = ParseError {
- errorContexts :: [String]
- errorMessage :: String
- class AttoparsecInput a
- iterParser :: (AttoparsecInput a, Monad m) => Parser a b -> Iteratee a m b
Documentation
data ParseError Source
The context and message from a Fail
value.
ParseError | |
|
class AttoparsecInput a Source
A class of types which may be consumed by an Attoparsec parser.
Since: 0.3
iterParser :: (AttoparsecInput a, Monad m) => Parser a b -> Iteratee a m bSource
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.