-
Notifications
You must be signed in to change notification settings - Fork 697
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
Avoid using to-be-deprecated Data.List.NonEmpty.unzip #8916
Conversation
Can't we use |
We'd have to restrict the bounds on |
As said in the CLC ticket (haskell/core-libraries-committee#86 (comment)) I'd be more comfortable if we had an automated way to prevent it from coming back, preferably with an HLint or Retrie rule. |
@mixphix a comment nearby the code you added would be reasonable, I think. |
The bounds on `base` prevent us from using `Data.Functor.unzip` here. Its definition has been inlined. Eventually `Data.List.NonEmpty.unzip` will be monomorphic and this can be reverted with the appropriate `base` bounds.
The use of |
The warning is causing the GHC pipeline to fail, see here |
Right, but the code is right so what do you think about turning the warning off, or downgrading it's severity (not sure if the pipeline is looking for |
The pipeline has at least |
Yea, you'd probably want to downgrade that selectively with CPP. |
You want me to use CPP to avoid a one-line local definition? |
It's not a project I contribute to, so I don't want you to do anything. I'm just observing what people who use |
Hey @mixphix! Thanks a lot for the contribution! I see you requested my review but i already approved some time ago and that's about all i can do: the PR needs a second reviewer. We could tag some folks who are involved with Cabal but focused on other things and so didn't respond to this PR. E.g. @Kleidukos, @ffaf1, folks, I hope you don't mind me tagging you and perhaps you could find time to review this tiny improvement. |
With ndmitchell/hlint#1500 I am now much more comfortable. |
@mixphix do you have permissions to add labels, and if so, are you ready to apply the merge-me label to hand it over to the merge bot? |
I don't have label permissions, but please go ahead! |
I gotchu |
What's up with Mergify here? |
Permissions stuff apparently, but let's merge this. :) |
Co-authored-by: Melanie Phoenix <[email protected]>
How do I get the GHC MR to include a |
@mixphix the usual way with submodules, I think, is to cd into the submodule directory, do git pull, cd back, git add --all and commit... |
For CLC ticket #86
Please include the following checklist in your PR:
[N/A] Any changes that could be relevant to users have been recorded in the changelog.
[N/A] The documentation has been updated, if necessary.
[N/A] Include manual QA notes if your PR relates to cabal-install.
Bonus points for added automated tests!