diff --git a/Database/Groundhog/Inspector.hs b/Database/Groundhog/Inspector.hs
--- a/Database/Groundhog/Inspector.hs
+++ b/Database/Groundhog/Inspector.hs
@@ -415,7 +415,7 @@
 dataD' cxt name types constrs derives =
 #if MIN_VERSION_template_haskell(2, 12, 0)
   DataD cxt name types Nothing constrs [DerivClause Nothing (map ConT derives)]
-#if MIN_VERSION_template_haskell(2, 11, 0)
+#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,4 +1,4 @@
-0.8.0.1
+0.8.0.2
 * Compatibility with template-haskell-2.12
 
 0.8
diff --git a/groundhog-inspector.cabal b/groundhog-inspector.cabal
--- a/groundhog-inspector.cabal
+++ b/groundhog-inspector.cabal
@@ -1,5 +1,5 @@
 name:            groundhog-inspector
-version:         0.8.0.1
+version:         0.8.0.2
 license:         BSD3
 license-file:    LICENSE
 author:          Boris Lykah <lykahb@gmail.com>
