Superseeded by https://github.com/Infinisil/all-hies
This project is around just for reference, please use all-hies instead.
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 you can use binaries provided by Cachix. See instructions how to configure cachix. Otherwise (on macOS) be prepared to compile for a while.
To install a wrapper that will be able to pick between hie-8.2
and hie-8.4
:
$ nix-env -iA hies -f https://github.com/domenkozar/hie-nix/tarball/master
$ 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
Install hies
which will include all supported GHC versions and the wrapper supported
by most editors.
See https://github.com/haskell/haskell-ide-engine#editor-integration
Yes, but make sure you have Nix enabled in either stack.yaml
in your project or globally:
$ cat ~/.stack/config.yaml
nix:
enable: true
hie
looks at the environment variable HIE_HOOGLE_DATABASE
, one can find the
index by looking at Nix's Hoogle wrapper script.
One can add the below to the shell's shellHook
. Make sure to use
ghcWithHoogle
or ghc.withHoogle
when creating the shell to ensure the
Hoogle database is created.
export HIE_HOOGLE_DATABASE="$(cat $(which hoogle) | sed -n -e 's|.*--database \(.*\.hoo\).*|\1|p')"