diff --git a/hls-rename-plugin.cabal b/hls-rename-plugin.cabal
--- a/hls-rename-plugin.cabal
+++ b/hls-rename-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               hls-rename-plugin
-version:            2.3.0.0
+version:            2.4.0.0
 synopsis:           Rename plugin for Haskell Language Server
 description:
   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -21,6 +21,11 @@
     location: https://github.com/haskell/haskell-language-server.git
 
 library
+  -- Plugins that need exactprint have not been updated for 9.8 yet
+  if impl(ghc >= 9.8)
+    buildable: False
+  else
+    buildable: True
   exposed-modules:  Ide.Plugin.Rename
   hs-source-dirs:   src
   build-depends:
@@ -29,11 +34,11 @@
     , extra
     , ghc
     , ghc-exactprint
-    , ghcide                == 2.3.0.0
+    , ghcide                == 2.4.0.0
     , hashable
     , hiedb
     , hie-compat
-    , hls-plugin-api        == 2.3.0.0
+    , hls-plugin-api        == 2.4.0.0
     , hls-refactor-plugin
     , lens
     , lsp
@@ -48,6 +53,10 @@
   default-language: Haskell2010
 
 test-suite tests
+  if impl(ghc >= 9.8)
+    buildable: False
+  else
+    buildable: True
   type:             exitcode-stdio-1.0
   default-language: Haskell2010
   hs-source-dirs:   test
@@ -60,4 +69,4 @@
     , filepath
     , hls-plugin-api
     , hls-rename-plugin
-    , hls-test-utils             == 2.3.0.0
+    , hls-test-utils             == 2.4.0.0
