-
Notifications
You must be signed in to change notification settings - Fork 704
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
Future compat for liftA2 being exported from Prelude #8223
Conversation
@@ -17,15 +17,15 @@ module Distribution.Fields.ParseResult ( | |||
withoutWarnings, | |||
) where | |||
|
|||
import Distribution.Compat.Prelude | |||
import Distribution.Compat.Prelude hiding (Applicative(..)) |
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.
With this change, this module will not compile on base < 4.10.0. Not sure what to do here.
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.
(other than introduce more CPP)
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.
I think CPP is the only resort.
(BTW it would be nice to mention such situation in the migration guide)
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.
I added it to the migration guide, but I'm not sure I (if it's possible at all) to provide instructions that cover most of the cases, it feels like this might be very varying in what the fix is.
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.
I tried to push a fix for this but it's not trivial for me to compile with base <4.10 right now, could you take a look as well?
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.
Seems to befine on CI.
Seeing as |
b92ce4c
to
7eae164
Compare
7eae164
to
6af5507
Compare
@Mikolaj could you please take a look? |
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.
Approving on the grounds of: the change is eminent and the CI is clear. I don’t know if it’s possible to avoid CPP but I trust the author’s judgement.
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.
LGTM. If this fails after the intended liftA2
change, we can always fix some more. Similarly, we will probably need to fix cabal-install and other packages in this repo, so from my perspective this doesn't need to be right on the first try.
@googleson78: may I ask you, at your leisure, after the firefighting is over, to create a separate PR with a tiny changelog file for this PR? Thank you. |
@mergify backport 3.8 |
✅ Backports have been created
|
Future compat for liftA2 being exported from Prelude (backport #8223)
Future compat for haskell/core-libraries-committee#50