-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Jump to instance definition and explain typeclass evidence for GHC 9 #1983
Conversation
cd9467d
to
dc807c4
Compare
Not strictly related to this change, but I wonder if it's possible to show the instances in scope when hovering on a type? |
This comment has been minimized.
This comment has been minimized.
Yes it is. In fact, local completions will already (incorrectly) suggest local instances in scope (i.e. those arising from type signature contexts and case splits) if you start completing using For top level instances, we can use the same mechanism used by GHCi for |
This comment has been minimized.
This comment has been minimized.
Some opportunities for bikeshedding:
|
"from instance", "via instance" or simply "instance"?
+1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It's a very practical function! I'm glad to push it far more with @wz1000' willing. BTW, have this feature been integrated into |
Needs a non trivial (for me :-P ) rebase |
@July541 yes, feel free to pick this up. |
12d56df
to
4d32c2a
Compare
@wz1000 Hello, do you mind explaining some details?
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
fe99da1
to
8a72997
Compare
Rebase and finished in #4392 |
Now that we have GHC 9, it is easy to implement "Jump to instance definition" as well as show exactly
the instances being used at a point on hover.
TODO