-
Notifications
You must be signed in to change notification settings - Fork 20
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
Discover/link positional [de]construction #104
Comments
I added some comments on the slightly related #19 . A quick summary of the current state after quickly checking https://github.com/google/haskell-indexer/blob/master/kythe-verification/testdata/basic/RecordReadRef.hs - correct me if it is wrong:
IMO, a user generally wants to see how a field is used in a specific context when looking through the backreferences. The various cases are:
As a unified solution, my gut feeling is that a local usage of a deconstructed var should directly reference both the local binding and the generic field binding in the data definition. |
See discussion in kythe/kythe#3934 - TLDR the local binding should bind a /cc @zrlk to verify I understand correctly |
Given a code like this it would be great to get cross-references:
E.g., when one clicks on
x
in data definition bothfoo
andbar
are useful places to link to because they "use"x
. For bonus points it would be great to not link_
inbar
wheny
is clicked.As a workaround, clicking on the data constructor name currently works, so this issue is a pure usability enhancement, not a particularly critical enabler.
The text was updated successfully, but these errors were encountered: