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

Various fixes for ghc 9 and stackage-nightly compat #433

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

maralorn
Copy link
Contributor

No description provided.

@roberth
Copy link
Contributor

roberth commented Jun 21, 2022

Eta reduce must be disabled in hlint for GHC >=9. It's not worth doing CPP for that, so you'll want to remove it unconditionally.

ghc 9 is pickier regarding the order of TH statements
…hecker

This is a sad change, because hlint will complain about the unnecessary
eta expansion.

The problem is that ghc 9 will not unify the forall x. x with () in an
argument position. Although obviously a supplied value of the type
forall x. WidgetT x () can be used as a WidgetT () ().

eta expanding helps the type checker to agree with this.
@maralorn maralorn force-pushed the ghc-9-th branch 2 times, most recently from 62adf1e to 90d60e3 Compare March 11, 2024 14:41
@maralorn maralorn force-pushed the ghc-9-th branch 5 times, most recently from 775503b to df95bfc Compare March 12, 2024 13:40
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