Skip to content
Snippets Groups Projects

Hand over GHC management to ghcup from stack

Open Adrien requested to merge why-not-try-calmer/ghcup-hs:stack-using-ghcup-ghc into master
1 unresolved thread
+ 9
0
@@ -376,6 +376,15 @@ Examples:
5. you can even compile ghc to an isolated location.
- `ghcup compile ghc -j 4 -v 9.0.1 -b 8.10.5 -i /home/username/my/dir/ghc`
## Handing over GHC management to ghcup
It might be convenient to let ghup handle all things regarding compiler versions. Otherwise you might end up with duplicated directories, when `stack` would install ghc versions it needs for a project but cannot find on `PATH`.
To prevent `stack` from installing GHC versions while also forcing it to use ghc versions managed by ghcup, add to your `stack`'s global `config.yaml`:
install-ghc: false
system-ghc: true
## Continuous integration
On Windows, GHCup can be installed automatically on a CI runner
Loading