-
Notifications
You must be signed in to change notification settings - Fork 709
RFC: Potential fix for #4808 #4830
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Test would be great. I can only shake my head around this. If only we could have versioned APIs to call older |
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.
Looks OK, but I'd like to see a test. We can merge it as-is to 2.0
to get the point release out faster, and leave the PR for master
open.
@23Skidoo I'm not sure yet how such a test would look like; we can probably do easy roundtrip tests (and it would help if FlagAssignment was a newtype, so we could attach parse/display instances to it). (relatedly, @ezyang mentioned in #4710 (comment) we don't have many communication tests with different lib:Cabal versions) So which kind of tests did you (& @phadej) have in mind specifically? |
What is the status of this? For the record, this is something that 8.2.2 is blocking on. |
@hvr, I'm ok for this going to 2.0 as is, but for |
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.
See my comment.
cherry-picked on 2.0. @bgamari could you verify it unblocks GHC-8.2.2? |
oh yes; in fact I have already started on refactoring it into a newtype (see #4849) to see how much places I'd have to touch; it's not bad at all :-) |
Thanks @phadej. That should do it. |
See #4808 (comment)
Please include the following checklist in your PR:
[ci skip]
is used to avoid triggering the build bots.Please also shortly describe how you tested your change. Bonus points for added tests!