How to get nice syntax error messages with Happy?

限于喜欢 提交于 2019-12-02 00:00:38

There is a Happy feature that I have authored for this purpose.

See my blog post: Toward better GHC syntax errors

It was merged in this pull request RFC: On parse error - show the next possible tokens.

Generally, from what I've heard, if you want nice parser errors, use Parsec instead of Happy.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!