diff --git a/polysemy-plugin.cabal b/polysemy-plugin.cabal
--- a/polysemy-plugin.cabal
+++ b/polysemy-plugin.cabal
@@ -1,11 +1,11 @@
 cabal-version: 2.0
 
--- This file has been generated from package.yaml by hpack version 0.35.2.
+-- This file has been generated from package.yaml by hpack version 0.36.1.
 --
 -- see: https://github.com/sol/hpack
 
 name:           polysemy-plugin
-version:        0.4.5.2
+version:        0.4.5.3
 synopsis:       Disambiguate obvious uses of effects.
 description:    Please see the README on GitHub at <https://github.com/polysemy-research/polysemy/tree/master/polysemy-plugin#readme>
 category:       Polysemy
@@ -27,7 +27,7 @@
 
 custom-setup
   setup-depends:
-      Cabal <3.11
+      Cabal <3.13
     , base >=4.9 && <5
     , cabal-doctest >=1.0.6 && <1.1
 
@@ -65,9 +65,9 @@
       UnicodeSyntax
   build-depends:
       base >=4.9 && <5
-    , containers >=0.5 && <0.7
+    , containers >=0.5 && <0.8
     , ghc >=8.6.5 && <10
-    , ghc-tcplugins-extra >=0.3 && <0.5
+    , ghc-tcplugins-extra >=0.3 && <0.6
     , polysemy >=1.7
     , syb ==0.7.*
     , transformers >=0.5.2.0 && <0.7
@@ -110,13 +110,13 @@
   ghc-options: -threaded -rtsopts -with-rtsopts=-N -fplugin=Polysemy.Plugin
   build-depends:
       base >=4.9 && <5
-    , containers >=0.5 && <0.7
-    , doctest >=0.16.0.1 && <0.23
+    , containers >=0.5 && <0.8
+    , doctest >=0.16.0.1 && <0.25
     , ghc >=8.6.5 && <10
-    , ghc-tcplugins-extra >=0.3 && <0.5
+    , ghc-tcplugins-extra >=0.3 && <0.6
     , hspec >=2.6.0 && <3
     , hspec-discover
-    , inspection-testing >=0.4.2 && <0.6
+    , inspection-testing >=0.4.2 && <0.7
     , polysemy >=1.3.0.0
     , polysemy-plugin
     , should-not-typecheck >=2.1.0 && <3
diff --git a/src/Polysemy/Plugin/Fundep.hs b/src/Polysemy/Plugin/Fundep.hs
--- a/src/Polysemy/Plugin/Fundep.hs
+++ b/src/Polysemy/Plugin/Fundep.hs
@@ -62,6 +62,10 @@
 #define GET_TYVAR tcGetTyVar_maybe
 #endif
 
+#if __GLASGOW_HASKELL__ >= 912
+import           GHC.Tc.Types.CtLoc
+#endif
+
 #if __GLASGOW_HASKELL__ >= 900
 import           GHC.Builtin.Types.Prim (alphaTys)
 import           GHC.Plugins (idType, tyConClass_maybe, ppr, Outputable, sep, text, (<+>), parens, emptyUFM)
