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

Add a handler for "Go To Declaration" #3087

Open
michaelpj opened this issue Aug 10, 2022 · 0 comments
Open

Add a handler for "Go To Declaration" #3087

michaelpj opened this issue Aug 10, 2022 · 0 comments
Labels
type: enhancement New feature or request

Comments

@michaelpj
Copy link
Collaborator

At the moment we mostly just use "go to definition", but LSP also has "go to declaration". I think the concept of a declaration does actually make sense in Haskell, namely:

  1. For entities that have a type/kind signature, go to declaration could go to the signature (which can be in a different location)
  2. For typeclass methods, go to declaration could go to the declaration in the class, and go to definition could go to the definitions in the instances
  3. Anything else?
@michaelpj michaelpj added the type: enhancement New feature or request label Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant