These are chat archives for carymrobbins/intellij-haskforce

25th
Jun 2016
Marek Kadek
@KadekM
Jun 25 2016 20:28
Hi, great job with the plugin!
Is there a way to navigate to sources / declaration of dependancies?
Cary Robbins
@carymrobbins
Jun 25 2016 20:31
Thanks @KadekM! You can, I really need to write a wiki post on it.
Marek Kadek
@KadekM
Jun 25 2016 20:31
Oh that would be wonderful! I'm from scala, not experienced with Haskell, and navigating to sources and exploring both interface/implementation is in my must-have from IDE :)
but it's great I can reuse all shortcuts I have from IntelliJ. So really, big +1 for plugin. Extremely little effort to set it all up and have fun
Cary Robbins
@carymrobbins
Jun 25 2016 20:33
My workflow is to create a lib/ dir, then use stack unpack to extract sources to the lib dir
See issue #192
Marek Kadek
@KadekM
Jun 25 2016 20:35
Works like acharm
Thanks
Cary Robbins
@carymrobbins
Jun 25 2016 20:35
Awesome! Glad to hear it
Marek Kadek
@KadekM
Jun 25 2016 20:35
Is it fine if I do a PR to document it ?
(even though it's trivial ... )
Cary Robbins
@carymrobbins
Jun 25 2016 20:36
That would be great. Maybe a wiki page would be good (which doesn't require a PR)
Marek Kadek
@KadekM
Jun 25 2016 20:36
Cool
Cary Robbins
@carymrobbins
Jun 25 2016 20:38
Also, if you ever feel like contributing, please do! Just let me know and I'd be happy to walk you through what you are trying to do.
There's a lot of great things this project can accomplish, but
Marek Kadek
@KadekM
Jun 25 2016 20:39
Thanks :) I'll get in touch if I get serious about it, right now I'm just trying to get better feel for it
Cary Robbins
@carymrobbins
Jun 25 2016 20:39
resources are pretty low
Marek Kadek
@KadekM
Jun 25 2016 20:39
Are you also doing the Frege plugin ?
Cary Robbins
@carymrobbins
Jun 25 2016 20:40
Yeah, I started one, I want to see if it's practical to develop a plugin in frege
But I haven't messed with it much lately
Marek Kadek
@KadekM
Jun 25 2016 20:41
I see
I find it quite hard to work on OSS when I'm already spending 8-10h working on a job -_- so I have tremendous respect for people who find energy to do it
Cary Robbins
@carymrobbins
Jun 25 2016 20:46
Yeah for sure, some times I have the energy, other times I just don't. The 50 hr job + family and kids makes it tough! But, I want to finally see a good Haskell IDE, so, yeah
Marek Kadek
@KadekM
Jun 25 2016 21:02

Jump to Library Sources

One possible approach is to create a lib/ directory in your project, followed by stack unpack. For example, if you wish to be able to navigate to source of Scotty:

$ mkdir lib
$ cd lib
$ stack unpack scotty

Now you should be able to navigate to declaration/source using goto declaration, i.e:
usage

is it fine if I add this section ?
Cary Robbins
@carymrobbins
Jun 25 2016 21:07
Perfect!
Really, feel free to add and ask for forgiveness.
I'm not too worried about correcting stuff after the fact.
Marek Kadek
@KadekM
Jun 25 2016 21:13
Done, thanks for help
Cary Robbins
@carymrobbins
Jun 25 2016 21:19
For sure, if you run into any other issues, please let me know and/or create an issue on GitHub