diff --git a/Database/Groundhog/TH/CodeGen.hs b/Database/Groundhog/TH/CodeGen.hs
--- a/Database/Groundhog/TH/CodeGen.hs
+++ b/Database/Groundhog/TH/CodeGen.hs
@@ -822,7 +822,9 @@
 
 dataInstD' :: Cxt -> Name -> [Type] -> [Con] -> [Name] -> InstanceDec
 dataInstD' cxt name types constrs derives =
-#if MIN_VERSION_template_haskell(2, 11, 0)
+#if MIN_VERSION_template_haskell(2, 12, 0)
+  DataInstD cxt name types Nothing constrs [DerivClause Nothing (map ConT derives)]
+#elif MIN_VERSION_template_haskell(2, 11, 0)
   DataInstD cxt name types Nothing constrs (map ConT derives)
 #else
   DataInstD cxt name types constrs derives
@@ -830,7 +832,9 @@
 
 dataD' :: Cxt -> Name -> [TyVarBndr] -> [Con] -> [Name] -> InstanceDec
 dataD' cxt name types constrs derives =
-#if MIN_VERSION_template_haskell(2, 11, 0)
+#if MIN_VERSION_template_haskell(2, 12, 0)
+  DataD cxt name types Nothing constrs [DerivClause Nothing (map ConT derives)]
+#elif MIN_VERSION_template_haskell(2, 11, 0)
   DataD cxt name types Nothing constrs (map ConT derives)
 #else
   DataD cxt name types constrs derives
diff --git a/changelog b/changelog
--- a/changelog
+++ b/changelog
@@ -1,3 +1,6 @@
+0.8.0.1
+* Compatibility with template-haskell-2.12
+
 0.8
 * Support for GHC 8
 * Generation of instances for newtype
diff --git a/groundhog-th.cabal b/groundhog-th.cabal
--- a/groundhog-th.cabal
+++ b/groundhog-th.cabal
@@ -1,5 +1,5 @@
 name:            groundhog-th
-version:         0.8
+version:         0.8.0.1
 license:         BSD3
 license-file:    LICENSE
 author:          Boris Lykah <lykahb@gmail.com>
