carymrobbins / intellij-haskforce

Haskell plugin for IntelliJ IDEA
http://carymrobbins.github.io/intellij-haskforce/
Apache License 2.0
486 stars 39 forks source link

Jump to library sources #192

Open NightRa opened 9 years ago

NightRa commented 9 years ago

A feature I really miss in Haskell IDEs is jumping to the source of functions outside the project. This can be acheived via the codex package.

carymrobbins commented 9 years ago

Agreed. There is a way to get it to work now, though. You can do this by using cabal get. I usually create a lib dir and just put the sources there. However, true codex (or similar) integration and support would be really nice.

carymrobbins commented 9 years ago

Now that I'm implementing stack support, I'm wondering how this would work with stack. Possibly we could still use cabal get, but I'd be worried about how it may affect the stack project, as well as requiring the user to have a cabal executable configured.

If anyone knows of a way to use stack (or similar tooling) to achieve this without cabal, that'd be great. All we need to do is be able to download the library sources. The IntelliJ indexer will take care of the rest.

carymrobbins commented 8 years ago

stack unpack will actually work for this.

KadekM commented 8 years ago

Here are step by step instructions: https://github.com/carymrobbins/intellij-haskforce/wiki/Quick-Start-Guide#jump-to-library-sources

wu-s-john commented 6 years ago

I actually tried doing this unpack method. I created a lib folder and unpacked hspec and QuickSpec to it. The GoTo method will not work for these libraries.