Skip to content
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

Goto References should find references for the current type #2952

Open
fendor opened this issue Jun 12, 2022 · 1 comment
Open

Goto References should find references for the current type #2952

fendor opened this issue Jun 12, 2022 · 1 comment
Labels
status: in discussion Not actionable, because discussion is still ongoing or there's no decision yet type: enhancement New feature or request

Comments

@fendor
Copy link
Collaborator

fendor commented Jun 12, 2022

Essentially, help you find all occurrences for a polymorphic function of a given type. Example, maybe you want to find all occurrences of (==) :: Foo -> Foo -> Foo.
Currently, iirc, goto References will find all occurrences of (==) regardless of the type.

If I am not mistaken, such a query is currently not possible.

Afaict, it should be easily possible to implement this feature, but the Client UI might be a bit complicated.

@michaelpj
Copy link
Collaborator

The main issue is that it's not clear how we would know whether the user wants the uses of the instantiated or non-instantiated method. It seems like the requested behaviour could be surprising if you're not expecting it.

@michaelpj michaelpj added status: in discussion Not actionable, because discussion is still ongoing or there's no decision yet and removed status: needs triage labels Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: in discussion Not actionable, because discussion is still ongoing or there's no decision yet type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants