The purpose of this repository is to provide HIE for each major GHC version installable via Nix.
Hie built with specific GHC needs to match the major version of GHC used on development project.
For linux, make sure to enable cachix:
$ cachix use hie-nix
To install hie-8.0
, hie-8.2
and hie-8.4
:
$ nix-env -iA hies -f https://github.com/domenkozar/hie-nix/tarball/master
$ hie-8.0 --help
$ hie-8.2 --help
$ hie-8.4 --help
Or for just a specific GHC and get hie
:
$ nix-env -iA hie84 -f https://github.com/domenkozar/hie-nix/tarball/master
$ hie --help
# edit commit in update.sh
$ ./update.sh
To follow discussion how correct version of hie is picked per project, read haskell/haskell-ide-engine#439 (comment)
Yes, but make sure you have Nix enabled in either stack.yaml
in your project or globally:
$ cat ~/.stack/config.yaml
nix:
enable: true