Safe Haskell | Safe-Infered |
---|
- data ParseError
- = ParseError {
- errorContexts :: [String]
- errorMessage :: String
- | DivergentParser
- = ParseError {
- pipeParser :: (Monoid a, Monad m) => (a -> IResult a r) -> Pipe a x m (a, Either ParseError r)
Documentation
data ParseError Source
A parse error as returned by Attoparsec.
ParseError | |
| |
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.