Closed JulienPerrin closed 4 years ago
To my understanding atom-haskell is just a bundle of the following packages, language-haskell ide-haskell ide-haskell-cabal haskell-ghc-mod autocomplete-haskell. If it helps, the relevant documentation is here: https://atom-haskell.github.io/installation/installing-binary-dependencies/
If you’re trying to get ghc-mod working with ghc 8.3, my advice would be to use the version of ghc-mod bundled with haskell-ide-engine. https://github.com/haskell/haskell-ide-engine
Indeed, this is just a bundle of packages to get quickly started.
Another way to keep ghc-mods per GHC is to use stack build --copy-compiler-tool ghc-mod
with your resolver. This will not put the ghc-mod
in your global bin, but put it in a compiler specific bin. Meaning stack exec ghc-mod
in a project using GHC 8.2.2 will find the one built for 8.2.2 and stack exec ghc-mod
in a project for 8.0.2 will find that one.
Of course, you'll have to build it for the GHC version the first time you use it, or just find a build them immediately with fitting resolvers.
It seems possible to install ghc-mod with
stack --resolver lts-9.21 install ghc-mod
When I entered this line in my terminal as indicated in the ReadMe :
stack install ghc-mod hoogle hasktags pointfree pointful cabal-install
I received this error :
I found that the reason is that I had to put an older version of the resolver lts in stack.yaml :
resolver: lts-9.9
Maybe you should add it in your readme. It is also mentioned in here : https://atom-haskell.github.io/core-packages/haskell-ghc-mod/#maintain-a-separate-ghc-mod-installation-for-each-stack-resolver