atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Go to Declaration for all dependencies #170

Open sw1sh opened 7 years ago

sw1sh commented 7 years ago

Is there a possibility of jumping to the source code of your project dependencies through 'Go to Declaration' command? It seems like a killer feature to me, is it not supported yet or my setup somehow broken and there is a bug? Using nightly stack resolver.

lierdakil commented 7 years ago

There's a technical challenge in jumping to dependencies, due to the simple fact that GHC discards much of source information on compilation and dependencies are almost always compiled. At the moment, I have no idea on how to overcome that in general. Haddock might be an option, and there's some work on ghc-mod that should facilitate that. But for now, this is impossible, unless you're willing to have all dependencies open as Atom subprojects. Then hasktags should work with that, for the most part.

canonic-epicure commented 6 years ago

Other haskell plugins (like IntelliJ plugin) do this with "stack unpack"