carymrobbins / intellij-haskforce

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

Let stack manage the Haskell Tools #304

Open LeanderK opened 8 years ago

LeanderK commented 8 years ago

with stack the GHC versions between the projects can differ, this can cause problems with the haskell tools. I therefore propose having the manual settings for cabal and let stack manage the tools similar to the way atom-haskell solves this problem (https://github.com/atom-haskell/haskell-ghc-mod/wiki/Using-with-stack). As a side benefit the installation and setup of the tools will be fully automatic. While not directly related, i am keeping this in mind while working on #298, so it should not require much work. While i would prefer letting stack manage the tools to be the standard, i think its a good idea to be able to disable that behaviour.

carymrobbins commented 7 years ago

Note that this can be easily implemented by relying on the stack build command, e.g.

% stack build ghc-mod
% stack build hlint
carymrobbins commented 7 years ago

I think these would be the requirements -