Skip to content

Instantly share code, notes, and snippets.

@hasufell
Created December 3, 2024 14:02
Show Gist options
  • Save hasufell/af34085dd2bffd68b3a17578fe21cbb8 to your computer and use it in GitHub Desktop.
Save hasufell/af34085dd2bffd68b3a17578fe21cbb8 to your computer and use it in GitHub Desktop.
From 4ea640e8ee3220329123d8e70168d8fb0ddf63b7 Mon Sep 17 00:00:00 2001
From: fendor <[email protected]>
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 411e6e4da..c61887ff5 100644
--- a/cabal.project
+++ b/cabal.project
@@ -7,7 +7,7 @@ packages:
./hls-plugin-api
./hls-test-utils
-index-state: 2024-06-13T17:12:34Z
+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 06f798d1f..013700be5 100644
--- a/ghcide/src/Development/IDE/GHC/Compat/Core.hs
+++ b/ghcide/src/Development/IDE/GHC/Compat/Core.hs
@@ -703,7 +703,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
--
2.47.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment