Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental parsing API and improved error handling #71

Open
DemiMarie opened this issue Aug 22, 2016 · 1 comment
Open

Incremental parsing API and improved error handling #71

DemiMarie opened this issue Aug 22, 2016 · 1 comment

Comments

@DemiMarie
Copy link

DemiMarie commented Aug 22, 2016

Happy currently gives pretty bad error messages. This is shown by GHC's error messages on invalid syntax, which usually aren't very good.

One solution is used by the Menhir parser generator. Menhir provides an incremental parser API, which allows for error handling based on what states an error can be detected in. Its manual provides more details.

@DemiMarie DemiMarie changed the title Investigate using Menhir's techniques for better error messages Incremental parsing API and improved error handling Dec 1, 2016
@Ericson2314
Copy link
Collaborator

FYI opened #240 for incremental parsing itself, as opposed to this particular use-case of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants