Copyright | Copyright (C) 2006-2015 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
This module provides a standard way to deal with possible errors encounted during parsing.
- data PandocError
- = ParseFailure String
- | ParsecError Input ParseError
- handleError :: Either PandocError a -> a
Documentation
data PandocError Source
ParseFailure String | Generic parse failure |
ParsecError Input ParseError | Error thrown by a Parsec parser |
handleError :: Either PandocError a -> a Source
An unsafe method to handle PandocError
s.