You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A drawback of the PandocParsecError constructor is that it includes a Parsec type; this makes it impossible to use it with other parsers. It would be good to eliminate this dependence of T.P.Error on Parsec.
Suggestion: Add to PandocParseError some (perhaps optional) fields for sourcename, line, and column, and maybe for the snippet from sources where the error occurs.
Use this where we currently use PandocParsecError
We can take the code currently in rendereError for PandocParsecError and create a helper function for creating a PandocParseError.
The text was updated successfully, but these errors were encountered:
Another option would be to create a module that provides (parsec's) SourcePos, so we can use it in T.P.Error and T.P.Logging without directly importing parsec.
T.P.Parsing now exports `fromParsecError`, which can be used
to turn a parsec ParseError into a regular PandocParseError
(the appearance to the user should be unchanged in every case).
[API change]
Closes#8382.
)
Henceforth we just use `PandocParseError`.
T.P.Parsing now exports `fromParsecError`, which can be used
to turn a parsec ParseError into a regular PandocParseError
(the appearance to the user should be unchanged in every case).
[API change]
Closes#8382.
A drawback of the PandocParsecError constructor is that it includes a Parsec type; this makes it impossible to use it with other parsers. It would be good to eliminate this dependence of T.P.Error on Parsec.
Suggestion: Add to PandocParseError some (perhaps optional) fields for sourcename, line, and column, and maybe for the snippet from sources where the error occurs.
Use this where we currently use PandocParsecError
We can take the code currently in rendereError for PandocParsecError and create a helper function for creating a PandocParseError.
The text was updated successfully, but these errors were encountered: