From c70491e609f6fee77a8132ed0f6121519452cc1e Mon Sep 17 00:00:00 2001 From: Juhana Laurinharju Date: Thu, 24 Mar 2022 15:33:26 +0200 Subject: [PATCH] Update troubleshooting.md `ghcup compile` does not seem to perform `cabal update` and this can result in build failures --- docs/troubleshooting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 073c897534..729c35a201 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -186,13 +186,13 @@ stack install haskell-language-server --stack-yaml=stack-${ghcVersion}.yaml You also can leverage `ghcup compile hls`: ```bash -ghcup compile hls -v 1.6.1.0 --ghc 8.10.7 +cabal update && ghcup compile hls -v 1.6.1.0 --ghc 8.10.7 ``` as it uses cabal underneath you might need to use a specific cabal.project for some ghc versions: ```bash -ghcup compile hls -v 1.6.1.0 --ghc 9.0.2 --cabal-project cabal-ghc90.project +cabal update && ghcup compile hls -v 1.6.1.0 --ghc 9.0.2 --cabal-project cabal-ghc90.project ``` ### Preprocessors