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:            1.0.0.2
+version:            1.0.0.3
 synopsis:
   Class/instance management plugin for Haskell Language Server
 
@@ -28,15 +28,30 @@
     , base            >=4.12 && <5
     , containers
     , ghc
-    , ghc-api-compat
     , ghc-exactprint
     , ghcide          >=1.2  && <1.5
-    , hls-plugin-api  ^>=1.1
+    , hls-plugin-api  >=1.1  && <1.3
     , lens
     , lsp
     , text
     , transformers
 
+  if impl(ghc < 8.10.5)
+    build-depends:
+      ghc-api-compat ==8.6
+  elif impl(ghc == 8.10.5)
+    build-depends:
+      ghc-api-compat ==8.10.5
+  elif impl(ghc == 8.10.6)
+    build-depends:
+      ghc-api-compat ==8.10.6
+  elif impl(ghc == 8.10.7)
+    build-depends:
+      ghc-api-compat ==8.10.7
+  elif impl(ghc == 9.0.1)
+    build-depends:
+      ghc-api-compat ==9.0.1
+
   default-language:   Haskell2010
   default-extensions:
     DataKinds
@@ -54,6 +69,6 @@
     , base
     , filepath
     , hls-class-plugin
-    , hls-test-utils    ^>=1.0
+    , hls-test-utils    >=1.0 && <1.2
     , lens
     , lsp-types
