-
Notifications
You must be signed in to change notification settings - Fork 4
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
rewrite Given and Derived constraints too #7
Comments
afterwards, check if #3 is accepted or if yet more work is needed |
A useful tutorial on rewriting givens: https://youtu.be/sE1qWyQWWVY?t=1502 |
@tscholak, can you paste your repro example? |
Here is the example @tscholak found:
|
Hmm, we tried calling The code on which the plugin runs is:
I would expect the plugin to receive
or
and in both cases, I would expect the plugin to rewrite the first given to
And the plugin rewrites the first given to There are two related mysteries:
|
I improved the pretty-printer, and now I get:
So mystery 1 is solved (my old pretty printer is apparently not very good), and mystery 2 is solved as well (it's a genuine rewrite). But now we're left with a new mystery: why does ghc rewrite |
the rewrite rules are morally givens, and givens should be used to simplify givens, wanteds, and deriveds.
The text was updated successfully, but these errors were encountered: