diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## [0.2.1.1] - 2023-05-11
+
+- [#6](https://github.com/mitchellwrosen/text-ansi/pull/6) Fix Windows linker errors on GHC 9.4.5+
+
 ## [0.2.1] - 2022-11-05
 
 - Add `String.ANSI` module
diff --git a/src/Text/Builder/ANSI.hs b/src/Text/Builder/ANSI.hs
--- a/src/Text/Builder/ANSI.hs
+++ b/src/Text/Builder/ANSI.hs
@@ -60,8 +60,8 @@
 import Text.Builder (Builder)
 import qualified Text.Builder as Builder
 import Data.Word (Word8)
-import Foreign.C (CInt (CInt))
 import System.IO.Unsafe (unsafePerformIO)
+import System.Posix.Internals (c_isatty)
 
 -- $intro
 --
@@ -369,9 +369,6 @@
 isatty =
   unsafePerformIO (c_isatty 1) == 1
 {-# NOINLINE isatty #-}
-
-foreign import ccall unsafe "isatty"
-  c_isatty :: CInt -> IO CInt
 
 -- Collapse surround/surround to a single surround before phase 1
 {-# RULES
diff --git a/src/Text/Lazy/Builder/ANSI.hs b/src/Text/Lazy/Builder/ANSI.hs
--- a/src/Text/Lazy/Builder/ANSI.hs
+++ b/src/Text/Lazy/Builder/ANSI.hs
@@ -61,8 +61,8 @@
 import qualified Data.Text.Lazy.Builder as Builder
 import qualified Data.Text.Lazy.Builder.Int as Builder
 import Data.Word (Word8)
-import Foreign.C (CInt (CInt))
 import System.IO.Unsafe (unsafePerformIO)
+import System.Posix.Internals (c_isatty)
 
 -- $intro
 --
@@ -370,9 +370,6 @@
 isatty =
   unsafePerformIO (c_isatty 1) == 1
 {-# NOINLINE isatty #-}
-
-foreign import ccall unsafe "isatty"
-  c_isatty :: CInt -> IO CInt
 
 -- Collapse surround/surround to a single surround before phase 1
 {-# RULES
diff --git a/text-ansi.cabal b/text-ansi.cabal
--- a/text-ansi.cabal
+++ b/text-ansi.cabal
@@ -1,7 +1,7 @@
 cabal-version: 2.2
 
 name: text-ansi
-version: 0.2.1
+version: 0.2.1.1
 category: Data
 synopsis: Text styling for ANSI terminals.
 description:
@@ -19,10 +19,11 @@
 maintainer: Mitchell Rosen <mitchellwrosen@gmail.com>
 homepage: https://github.com/mitchellwrosen/text-ansi
 bug-reports: https://github.com/mitchellwrosen/text-ansi/issues
-copyright: (c) 2018-2022, Mitchell Rosen
+copyright: (c) 2018-2023, Mitchell Rosen
 license: BSD-3-Clause
 license-file: LICENSE
 build-type: Simple
+tested-with: GHC == 9.2.7, GHC == 9.4.5, GHC == 9.6.1
 
 extra-source-files:
   cabal.project
@@ -35,7 +36,7 @@
 
 library
   build-depends:
-    base >= 4.9 && < 4.18,
+    base >= 4.9 && < 4.19,
     text >= 1.0 && < 2.1,
     text-builder ^>= 0.6.7,
   default-language:
