-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add a stock Ord instance for AlexPosn #234
Add a stock Ord instance for AlexPosn #234
Conversation
@Ericson2314 : |
a143563
to
9ec6008
Compare
Resolved the conflict; planning to release this as 3.3.0. Candidate at: https://hackage.haskell.org/package/alex-3.3.0/candidate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clarify what this PR wants to achieve and argue why it achieves it.
Also a test please.
@andreasabel I'm slightly lost wrt the test suite. Despite having changed the wrapper, I don't think the test suite actually failed on the content change of the generated lexer, despite said content having changed in my tree.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I added a test for the availability of the instance Ord AlexPosn
.
Maybe you expected a "golden value" test, which does not exist here. The testsuite just generates lexers from |
ooooooh I see! Thank you :) |
Can't get hold of John @Ericson2314 it seems. Maybe then we just go ahead with the 3.3.0 plan. |
@andreasabel understood, I'll merge it then. |
Maybe the final "hit the button" should be priviledge of the maintainers (stern look). |
My apologies, I was operating under a "take responsibility of your contributions" model. I am a very poor user of Alex right now, but perhaps after a few other contributions I would certainly consider helping out with maintenance. :) |
I would have reorganized the commits a bit so that testcase is in the same commit with the change, but so be it now.
Contributions are very welcome! |
@andreasabel I am very sorry I did not respond to this in time. |
Looking at it after the fact, the change and the version number bump seem good to me. The state of the version numbers on Alex and Happy is a little weird, but hopefully we can consistently get back to 4 digit ones so the interpretation of the PVP is most obvious. |
No worries!
We can release this as 3.3, 3.3.0, or 3.3.0.0. Technically, this is a strictly increasing version sequence, but non-experts (like my former self) would consider these equal. Historically, Alex had both x.y (2.2, 2.3, 3.0) and x.y.0 (2.1.0, 3.1.0, 3.2.0) with x.y.0 dominant recently, so I went for 3.3.0. I take your statement as a vote for 3.3.0.0, @Ericson2314, is this your intention? |
Release candidate for 3.3.0.0 at: |
Close #233
This PR adds an Ord instance to the generated and the internal AlexPosn struct.