-
Notifications
You must be signed in to change notification settings - Fork 115
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
Update from Megaparsec 6.5 #368
Comments
I'd be quite happy to upgrade to Megaparsec 7.0. |
I took a stab at this and it's a bit tricky. The main challenge is that |
@Gabriel439 Thanks for the attempt, Gabriel! Is there any other way to recover that source position information when an error happens? I wonder if the author removed that information to avoid storing something that most people weren't using... |
@jwiegley: I believe it's mainly for performance reasons. This post provides more context for the motivation for the change: https://markkarpov.com/post/megaparsec-more-speed-more-power.html The changelog is also pretty detailed, although I haven't read it thoroughly yet: http://hackage.haskell.org/package/megaparsec-7.0.1/changelog What I did notice, though, is that the utilities for pretty-printing My guess is that either:
|
Hi, I haven't looked at the code, but if you want to have The users are mostly expected to work with
Not quite true, If you have any questions please ask, I'm interested to help with the transition. (Because if it doesn't work well for you, then version 7 sucks!) |
Fixed by #380 |
Fixed in master. |
Currently
hnix
depends onmegaparsec >=6.5 && <7.0
, and when runningnix-shell
I encountered a quickcheck error indicating a bug fixed in megaparsec 7.0 (mrkkrp/megaparsec#323)I'm not sure which things depend directly on megaparsec (I was doing this installation to just get started contributing), but since this bug is supposedly fixed in 7.0 that should be our target.
The text was updated successfully, but these errors were encountered: