-
Notifications
You must be signed in to change notification settings - Fork 6
Build failure with GHC 9.2.1 #32
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
Comments
I'm getting the same error with all the versions from v1.2.0.0 and up. I'm wondering whether I should add Hackage revisions to add bounds |
Huh, that seems to be a regression coming from GHC. In any case it wouldn't hurt to add the bounds to the released versions that broke, would it? |
I opened a GHC ticket with a minimized example https://gitlab.haskell.org/ghc/ghc/-/issues/20666 |
Thanks! I have made the Hackage revisions, e.g. https://hackage.haskell.org/package/generic-random-1.5.0.0/revisions/. Once there's fixed GHC 9.2.x, we can probably relax these again. |
#34 contains the fix. GHC uses a sizing scheme to ensure that it does not create bottom dictionaries. When trying to verify that an instance's superclass constraints are satisfied, it will use superclass constraints extracted from smaller instance context constraints. In the two instance declarations patched in #34, both the relevant instance constraint and the instance head (the part to the right of the The fact that older GHCs accepted the instances was a bug. I'm fairly sure that it would have been possible to create bottom dictionaries. |
Thanks for the detailed explanation Richard! @sjakobi I released the fix in 1.5.0.1 |
Thank you, @Lysxia and @goldfirere! :) |
The text was updated successfully, but these errors were encountered: