Skip to content

Hlint use elem and use notElem#11135

Merged
mergify[bot] merged 1 commit into
haskell:masterfrom
cabalism:hlint/elem-notElem
Aug 9, 2025
Merged

Hlint use elem and use notElem#11135
mergify[bot] merged 1 commit into
haskell:masterfrom
cabalism:hlint/elem-notElem

Conversation

@philderbeast
Copy link
Copy Markdown
Collaborator

@philderbeast philderbeast commented Aug 6, 2025

See #9110. After #11093 merged, I started on suggestions with a two count so that these warnings are no longer ignored and will be picked up by our CI linting.

The "Use elem" suggestion with a 2-count I feel is better paired with the "Use notElem" suggestion (with a 9-count) rather than the other 2-count suggestions.

Each applied suggestion is an individual commit but I'll squash these if this pull request is approved.


  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@philderbeast philderbeast added the merge me Tell Mergify Bot to merge label Aug 6, 2025
@mergify mergify Bot added the ready and waiting Mergify is waiting out the cooldown period label Aug 6, 2025
@philderbeast philderbeast force-pushed the hlint/elem-notElem branch 2 times, most recently from 6c0298f to fd39581 Compare August 7, 2025 13:45
Comment thread Cabal/src/Distribution/Simple/Configure.hs
@mpickering
Copy link
Copy Markdown
Collaborator

I personally find hlint suggestions annoying and would rather not have to do the busy-work to satisfy the linter. Therefore I would rather we kept most of the suggestions disabled.

@philderbeast
Copy link
Copy Markdown
Collaborator Author

I've learnt a lot over the years from hlint suggestions (thanks hlint).

I find satisfying the linter to be a low effort change in almost all cases and I'm happy to do that work.

@mergify mergify Bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Aug 9, 2025
mergify Bot added a commit that referenced this pull request Aug 9, 2025
@mergify mergify Bot merged commit 6ef8193 into haskell:master Aug 9, 2025
95 of 96 checks passed
@ulysses4ever
Copy link
Copy Markdown
Collaborator

@mpickering thank you for sharing your perspective. I'll add it to the meeting agenda, 'cause I don't see an easy resolution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge ready and waiting Mergify is waiting out the cooldown period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants