From b7ff83a0792fb5983266c49da7e21a81f696cabf Mon Sep 17 00:00:00 2001 From: Fendor Date: Tue, 3 Dec 2024 16:04:54 +0100 Subject: [PATCH] Allow building with GHC 9.8.4 --- cabal.project | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cabal.project b/cabal.project index 2c872ed46f..1593811493 100644 --- a/cabal.project +++ b/cabal.project @@ -8,7 +8,7 @@ packages: ./hls-test-utils -index-state: 2024-11-02T00:00:00Z +index-state: 2024-12-02T00:00:00Z tests: True test-show-details: direct @@ -46,3 +46,13 @@ constraints: if impl(ghc >= 9.9) -- https://github.com/haskell/haskell-language-server/issues/4324 benchmarks: False + +if impl(ghc >= 9.8.4) && impl(ghc < 9.8.5) + -- By depending on ghc-lib-parser and ghc, we are encountering + -- a constraint conflict, ghc-9.8.4 comes with `filepath-1.4.301.0`, + -- and `ghc-lib-parser-9.8.4.20241130` specifies `filepath >=1.5 && < 1.6. + -- See https://github.com/digital-asset/ghc-lib/issues/572 for details. + allow-older: + ghc-lib-parser:filepath + constraints: + ghc-lib-parser==9.8.4.20241130