ParseError
The abstract data type
ParseError represents parse errors. It
provides the source position (
SourcePos) of the error and a
list of error messages (
Message). A
ParseError can be
returned by the function
parse.
ParseError is an
instance of the
Show and
Eq classes.
ParseError s e represents a parse error parametrized
over the stream type
s and the custom data
e.
Semigroup and
Monoid instances of the data type allow us
to merge parse errors from different branches of parsing. When merging
two
ParseErrors, the longest match is preferred; if positions
are the same, custom data sets and collections of message items are
combined. Note that fancy errors take precedence over trivial errors
in merging.
The context and message from a
Fail value.
The abstract data type
ParseError represents parse errors. It
provides the source position (
SourcePos) of the error and a
list of error messages (
Message). A
ParseError can be
returned by the function
parse.
ParseError is an
instance of the
Show and
Eq classes.
A message describing a parsing error in human readable form.
Detailed information about parsing errors. Used by ICU parsing engines
that parse long rules, patterns, or programs, where the text being
parsed is long enough that more information than an
ICUError is
needed to localize the error.
An error indicating that parsing the code block failed.
This exception is used when a parser ultimately fails, the user of the
parser is intimated via this exception.
Pre-release
An error in the parser itself.
common parser error definition
Parse errors: what you get if parsing fails.
Errors that arise at a specific position in the file
A value indicating that the JSON could not be decoded successfully.