Skip to content

Conversation

@jvoigtlaender
Copy link
Contributor

This is per the hint

If the entire list is intended to be reduced via a fold, just fold the structure directly bypassing the list.

from the documentation: https://hackage.haskell.org/package/base-4.19.0.0/docs/Data-Foldable.html#v:toList

@ndmitchell ndmitchell merged commit 6ee004e into ndmitchell:master Aug 26, 2024
ndmitchell added a commit that referenced this pull request Aug 26, 2024
Summary:

Test Plan:
@jvoigtlaender jvoigtlaender deleted the toList branch August 26, 2024 15:00
cgohla pushed a commit to cgohla/hlint that referenced this pull request Jun 8, 2025
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.

2 participants