From 6d0a6f220226fe6c1cb5b6533177deb55e755b0b Mon Sep 17 00:00:00 2001 From: fendor Date: Mon, 4 Nov 2024 13:56:02 +0100 Subject: [PATCH] Build HLS with GHC 9.8.3 (#4444) --- cabal.project | 2 +- ghcide/src/Development/IDE/GHC/Compat/Core.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cabal.project b/cabal.project index 08d743c24e..2c872ed46f 100644 --- a/cabal.project +++ b/cabal.project @@ -8,7 +8,7 @@ packages: ./hls-test-utils -index-state: 2024-10-21T00:00:00Z +index-state: 2024-11-02T00:00:00Z tests: True test-show-details: direct diff --git a/ghcide/src/Development/IDE/GHC/Compat/Core.hs b/ghcide/src/Development/IDE/GHC/Compat/Core.hs index c6d4bc84bc..301aa980bd 100644 --- a/ghcide/src/Development/IDE/GHC/Compat/Core.hs +++ b/ghcide/src/Development/IDE/GHC/Compat/Core.hs @@ -674,7 +674,7 @@ initObjLinker env = loadDLL :: HscEnv -> String -> IO (Maybe String) loadDLL env str = do res <- GHCi.loadDLL (GHCi.hscInterp env) str -#if MIN_VERSION_ghc(9,11,0) +#if MIN_VERSION_ghc(9,11,0) || (MIN_VERSION_ghc(9, 8, 3) && !MIN_VERSION_ghc(9, 9, 0)) pure $ case res of Left err_msg -> Just err_msg