Skip to content
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 redundant toList-calls #1569

Merged
merged 2 commits into from
Aug 26, 2024
Merged

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
0 of 5 checks passed
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
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