Skip to content

Fix GHC 9.10 warnings#883

Merged
msooseth merged 2 commits intomainfrom
ghc-910
Oct 1, 2025
Merged

Fix GHC 9.10 warnings#883
msooseth merged 2 commits intomainfrom
ghc-910

Conversation

@elopez
Copy link
Collaborator

@elopez elopez commented Sep 24, 2025

Description

This fixes warnings that appear when building with GHC 9.10, due to foldl' now being available on prelude as well.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

@elopez elopez marked this pull request as ready for review September 24, 2025 02:04
Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I did not find any mention about adding foldl' to Prelude in the GHC changelog.
Is there a difference between Foldable in Prelude and Data.Foldable?
Can we just use the Prelude one?

@elopez
Copy link
Collaborator Author

elopez commented Sep 24, 2025

@blishko see https://discourse.haskell.org/t/prelude-foldl-migration-guide/6950

We cannot use just the Prelude one right now as build with older base/GHC combos would break. Once we're comfortable supporting GHC >=9.10 only we can clean up the imports a bit.

@msooseth
Copy link
Collaborator

LGTM. Do you wanna merge?

@elopez
Copy link
Collaborator Author

elopez commented Sep 30, 2025

If you're all ok with it, let's merge these changes so we're ready to make the switch to 9.10 sometime in the future.

@msooseth msooseth merged commit a822200 into main Oct 1, 2025
7 checks passed
@msooseth msooseth deleted the ghc-910 branch October 1, 2025 08:38
@msooseth
Copy link
Collaborator

msooseth commented Oct 1, 2025

Sure, merged! Thanks a lot :)

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.

3 participants