rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Feature Request: Navigate to Class Instances #353

Closed Cosmius closed 5 years ago

Cosmius commented 5 years ago

It would be desirable that I can navigate to the instances of the class

e.g.

class Show a where      -- [1]
   show :: a -> String  -- [2]

-- might be in other file
instance Show Int where -- [3]
  show x = undefined    -- [4]

I want to navigate from line 1 to line 3. And it would be better if when I click show (23 :: Int), I can navigate to line 4 instead of line 2.

ice1000 commented 5 years ago

Yes, and there should be something like LineMarkers, just like they are in IntelliJ's Scala/Java support.

I want this as well, can you do that? @rikvdkleij

rikvdkleij commented 5 years ago

It's already there: Navigate/Haskell/Instance Declaration.

ice1000 commented 5 years ago

Also, @Cosmius could u plz report the issue related to jumping to the wrong definition you mentioned yesterday?

rikvdkleij commented 5 years ago

Please reopen when it's still an issue.