-
Notifications
You must be signed in to change notification settings - Fork 48
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
Error with Generic constraint on type\data family GHC 9.4.2 #158
Comments
Hi. Thanks for bringing this to my attention. I'll try to reproduce as soon as possible. Most likely, though, this should be reported as a GHC bug, because it's a regression in GHC (unless it somehow turns out that previously accepting this code was the buggy behaviour, but I doubt it). Would you want to do this, or would you prefer if I do? |
I think it could be connected to 9.4 changes, namely:
or
I'll report it as bug though. |
Can you post a link to the ghc bug report? |
I've minimized the example and reported upstream as GHC#22516. |
Was very busy and forgot about reporting this bug to GHC. Thanks! |
Is this issue fixed in GHC 9.4.5 as this commit suggests (click the three branch dots)? |
I've confirmed that this is the case (after adding the appropriate language extensions to the top of the file). |
generics-sop seems to be broken when
Generic
constraint used with data or type family on ghc 9.4.2Minimal failing example:
The following typechecks on ghc <= 9.2
but fails to typecheck on 9.4.2 with error
-fconstraint-solver-iterations
does nothing here on n >= 0, and fails with OOM error on n = 0The text was updated successfully, but these errors were encountered: