diff --git a/ghc-api-compat.cabal b/ghc-api-compat.cabal
index a49c3f934f6afcb2d3935785f123f7e745369f19..15880c29bb19713754f237d938f64b96998a3ba8 100644
--- a/ghc-api-compat.cabal
+++ b/ghc-api-compat.cabal
@@ -19,7 +19,7 @@ source-repository head
   location: https://github.com/hsyl20/ghc-api-compat.git
 library
    build-depends:
-      ghc >= 8.6, base
+      ghc >= 8.6, base < 5.0
    default-language:    Haskell2010
 
    if impl(ghc >= 9.0)