For HLS users it should now be easier to get support for later GHC versions.
E.g. first try to build from hackage with some tricks:
ghcup compile hls --version 1.7.0.0 --ghc 9.2.4 --cabal-update -- --allow-newer --index-state=2022-06-12T00:00:00Z
This augments the currently installed 1.7.0.0 official bindists in ghcup with new GHC versions support.
If that fails (since --allow-newer
is quite brutal), you can install from HLS master branch (which may contain new fixes) like so:
ghcup compile hls --git-ref master --git-describe-version --ghc 8.10.7 --ghc 9.2.4 --cabal-update
This however will create a new HLS version in ghcup, e.g. 1.7.0.0-105-gdc682ba1
. If you want to switch back to the official bindists, run ghcup set hls 1.7.0.0
.
All of this is also documented here: https://www.haskell.org/ghcup/guide/#hls