- Installing GHC
stack setup --resolver ghc-8.0.1
This is the template for all future commands:
stack --resolver ghc-8.0.1 exec --no-ghc-package-path -- ghc --version
- Installing latest cabal-install
This install will cabal globally. On my mac the binary goes into ~/Library/Haskell/bin
. You still want to stack exec
as that puts GHC on the path.
stack --resolver ghc-8.0.1 exec --no-ghc-package-path -- cabal install cabal-install -j
- Now try new-build
stack --resolver ghc-8.0.1 exec --no-ghc-package-path -- cabal new-build
stack exec --resolver ghc-8.0.1 --no-ghc-package-path -- ghcid --command="cabal new-repl"
If you get issues about a package index being out of date (on os x), that's a known issue - http://blog.ezyang.com/2016/05/announcing-cabal-new-build-nix-style-local-builds/
Leads to a new build of all local dependencies when you change the ghci-script.