Like the alphas beforehand, if you want to use with Stack:
[1] Either (a) upgrade to the master
branch version of Stack (can be used only if you are not using GHCup to manage versions of Stack): stack upgrade --source-only --git
; or (b) test the first release candidate for Stack 2.15.7.
[2A] If you are not using GHCup to manage versions of GHC, augment Stack’s default setup-info
dictionary in a configuration file (needed only until Stack has fetched the compiler once). For example, on Windows:
setup-info:
ghc:
windows64:
9.10.0.20240426:
url: https://downloads.haskell.org/ghc/9.10.1-rc1/ghc-9.10.0.20240426-x86_64-unknown-mingw32.tar.xz
# Can be extended with SHA protections etc: see https://docs.haskellstack.org/en/stable/yaml_configuration/#setup-info
[2B] If you are using GHCup to manage versions of GHC, you can augment ~/.ghcup/config.yaml
. For example, either:
(1)
url-source:
- StackSetupURL
- setup-info:
ghc:
windows:
9.10.0.20240426:
url: https://downloads.haskell.org/ghc/9.10.1-rc1/ghc-9.10.0.20240426-x86_64-unknown-mingw32.tar.xz
# Can be extended with SHA protections etc: see https://docs.haskellstack.org
or, alternatively:
(2)
url-source:
- StackSetupURL
- https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml
[3] Specify the compiler in a Stack configuration file (eg stack.yaml
):
compiler: ghc-9.10.0.20240426