diff --git a/Math/NumberTheory/Primes/Testing/Probabilistic.hs b/Math/NumberTheory/Primes/Testing/Probabilistic.hs
--- a/Math/NumberTheory/Primes/Testing/Probabilistic.hs
+++ b/Math/NumberTheory/Primes/Testing/Probabilistic.hs
@@ -22,7 +22,7 @@
 import Data.Bits
 import Data.Mod
 import Data.Proxy
-import GHC.Base
+import GHC.Exts (Word(..), Int(..), (-#), (<#), isTrue#)
 import GHC.Integer.GMP.Internals
 import GHC.TypeNats (KnownNat, SomeNat(..), someNatVal)
 
diff --git a/arithmoi.cabal b/arithmoi.cabal
--- a/arithmoi.cabal
+++ b/arithmoi.cabal
@@ -1,5 +1,5 @@
 name:          arithmoi
-version:       0.12.0.1
+version:       0.12.0.2
 cabal-version: 2.0
 build-type:    Simple
 license:       MIT
@@ -17,7 +17,7 @@
   powers (integer roots and tests, modular exponentiation).
 category:      Math, Algorithms, Number Theory
 author:        Andrew Lelechenko, Daniel Fischer
-tested-with:   GHC ==8.2.2 GHC ==8.4.4 GHC ==8.6.5 GHC ==8.8.4 GHC ==8.10.4 GHC ==9.0.1
+tested-with:   GHC ==8.2.2 GHC ==8.4.4 GHC ==8.6.5 GHC ==8.8.4 GHC ==8.10.7 GHC ==9.0.2 GHC ==9.2.4 GHC ==9.4.1
 extra-source-files:
   changelog.md
 
diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,11 @@
 # Changelog
 
+## 0.12.0.2
+
+### Fixed
+
+* Compatibility patches for GHC 9.4.
+
 ## 0.12.0.1
 
 ### Fixed
