diff --git a/hls-class-plugin.cabal b/hls-class-plugin.cabal
--- a/hls-class-plugin.cabal
+++ b/hls-class-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               hls-class-plugin
-version:            2.3.0.0
+version:            2.4.0.0
 synopsis:
   Class/instance management plugin for Haskell Language Server
 
@@ -25,6 +25,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.Class
   other-modules:      Ide.Plugin.Class.CodeAction
                     , Ide.Plugin.Class.CodeLens
@@ -39,10 +44,10 @@
     , deepseq
     , extra
     , ghc
-    , ghcide          == 2.3.0.0
+    , ghcide          == 2.4.0.0
     , ghc-boot-th
     , hls-graph
-    , hls-plugin-api  == 2.3.0.0
+    , hls-plugin-api  == 2.4.0.0
     , lens
     , lsp
     , mtl
@@ -63,6 +68,10 @@
   ghc-options:        -Wall -Wno-unticked-promoted-constructors -Wno-name-shadowing
 
 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
@@ -75,7 +84,7 @@
     , ghcide
     , hls-class-plugin
     , hls-plugin-api
-    , hls-test-utils     == 2.3.0.0
+    , hls-test-utils     == 2.4.0.0
     , lens
     , lsp-types
     , row-types
