-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix lookup Div
and Mod
GHC >= 9.2
#52
Conversation
cc41b6e
to
beb409c
Compare
5c74672
to
6bfd0ea
Compare
This maybe unavoidable with the way type checker plugins work, but I don't think this reduction is always a good thing to do. While For example
|
Yes. You ideally want to reduce |
Since it's more controversial then expected I have removed the reduction from this PR. If you are oke with doing the reduction I will open a seperate PR. |
While implementing reduction
Mod n p <= q
->p <= q + 1
I noticed that the lookups forDiv
andMod
were wrong post GHC 9.2.I have fixed that and also added the reduction. If you want I can split this up into two PRs. One for the lookup fix and one for the reduction. But since the each change is so small I didn't feel like the overhead is worth it.