intellij-haskforce icon indicating copy to clipboard operation
intellij-haskforce copied to clipboard

Jump to library sources

Open NightRa opened this issue 10 years ago • 5 comments

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.

NightRa avatar Sep 11 '15 10:09 NightRa

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 avatar Sep 13 '15 02:09 carymrobbins

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 avatar Oct 09 '15 23:10 carymrobbins

stack unpack will actually work for this.

carymrobbins avatar Jan 29 '16 05:01 carymrobbins

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

KadekM avatar Jun 25 '16 21:06 KadekM

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.

wu-s-john avatar Dec 22 '17 06:12 wu-s-john