diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # ChangeLog
 
+## 0.2.5.2
+
+* Fixes build with ghc-9.0 (`template-haskell-2.17`)
+
 ## 0.2.5.1
 
 * `typeRepToType` now supports type literals, tuples and lists. See
diff --git a/src/TH/Utilities.hs b/src/TH/Utilities.hs
--- a/src/TH/Utilities.hs
+++ b/src/TH/Utilities.hs
@@ -188,7 +188,7 @@
           | modName == typeLitsMod =
               case tyConName con of
                 s@('"':_) -> LitT . StrTyLit $ read s
-#if MIN_VERSION_template_haskell(2,17,0)
+#if MIN_VERSION_template_haskell(2,18,0)
                 ['\'', c, '\''] -> LitT $ CharTyLit c
 #endif
                 s -> case readMaybe s of
diff --git a/th-utilities.cabal b/th-utilities.cabal
--- a/th-utilities.cabal
+++ b/th-utilities.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           th-utilities
-version:        0.2.5.1
+version:        0.2.5.2
 synopsis:       Collection of useful functions for use with Template Haskell
 category:       Template Haskell
 homepage:       https://github.com/fpco/th-utilities#readme
