Visitar URL original
Remove "Avoid NonEmpty.unzip" hint (fixes #1657) by mgajda · Pull Request #1683 · ndmitchell/hlint · GitHub
Skip to content

Remove "Avoid NonEmpty.unzip" hint (fixes #1657) - #1683

Open
mgajda wants to merge 1 commit into
ndmitchell:masterfrom
mgajda:fix/remove-nonempty-unzip-hint
Open

mgajda wants to merge 1 commit into
ndmitchell:masterfrom
mgajda:fix/remove-nonempty-unzip-hint

Conversation

@mgajda

@mgajda mgajda commented Apr 19, 2026 •

Copy link
Copy Markdown

Fixes #1657.

base >= 4.19 exposes Data.Functor.unzip and GHC emits -Wx-data-list-nonempty-unzip for the NonEmpty.unzip form (core-libraries-committee/issues/258). The hlint hint is redundant with the compiler warning, cannot be CPP-gated per base version, and fires even when unzip is imported from Data.Functor rather than Data.List.NonEmpty.

Replaces PR #1682 (closed; was inadvertently stacked on unrelated commits).

base >= 4.19 exposes `Data.Functor.unzip` and GHC warns about the
`NonEmpty.unzip` form via `-Wx-data-list-nonempty-unzip`
(core-libraries-committee/issues/258). The hlint hint is redundant
with the compiler warning, fires on imports that are not `NonEmpty.unzip`,
and cannot be CPP-gated per base version.

Drops one line from data/hlint.yaml. Self-test: 970 tests, 3 pre-existing
baseline failures, unchanged from master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove malfunctioning hint "Avoid NonEmpty.unzip"

1 participant