diff --git a/data-sword.cabal b/data-sword.cabal
--- a/data-sword.cabal
+++ b/data-sword.cabal
@@ -1,5 +1,5 @@
 Name: data-sword
-Version: 0.2.0.1
+Version: 0.2.0.2
 Category: Data
 Stability: experimental
 Synopsis: Shorter binary words
@@ -20,7 +20,7 @@
 Extra-Source-Files:
   README.md
 
-Tested-With: GHC==7.8.4, GHC==7.10.3, GHC==8.0.1
+Tested-With: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1
 
 Cabal-Version: >= 1.10.0
 Build-Type: Simple
diff --git a/src/Data/ShortWord/TH.hs b/src/Data/ShortWord/TH.hs
--- a/src/Data/ShortWord/TH.hs
+++ b/src/Data/ShortWord/TH.hs
@@ -66,7 +66,11 @@
                (NormalC cn [(Bang NoSourceUnpackedness
                                   NoSourceStrictness,
                              uT)])
+# if MIN_VERSION_template_haskell(2,12,0)
+               [DerivClause Nothing (ConT <$> union [''Typeable] ad)]
+# else
                (ConT <$> union [''Typeable] ad)
+# endif
 #else
                (NormalC cn [(NotStrict, uT)])
                (union [''Typeable] ad)
