diff --git a/Data/Vector/Unboxed/Deriving.hs b/Data/Vector/Unboxed/Deriving.hs
--- a/Data/Vector/Unboxed/Deriving.hs
+++ b/Data/Vector/Unboxed/Deriving.hs
@@ -1,6 +1,9 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE MultiParamTypeClasses #-}
 {-# LANGUAGE TemplateHaskell #-}
+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702
 {-# LANGUAGE Trustworthy #-}
+#endif
 {-# LANGUAGE TypeFamilies #-}
 {-# LANGUAGE ViewPatterns #-}
 {-# OPTIONS -Wall #-}
@@ -59,7 +62,11 @@
 wrap :: Name -> [(Pat, Exp)] -> (Exp -> Exp) -> [Dec]
 wrap fun (unzip -> (pats, exps)) coerce = [inline, method] where
     base = mkName (nameBase fun)
+#if MIN_VERSION_template_haskell(2,8,0)
     inline = PragmaD (InlineP base Inline FunLike AllPhases)
+#else
+    inline = PragmaD (InlineP base (InlineSpec True False Nothing))
+#endif
     body = coerce $ foldl AppE (VarE fun) exps
     method = FunD base [Clause pats (NormalB body) []]
 
diff --git a/vector-th-unbox.cabal b/vector-th-unbox.cabal
--- a/vector-th-unbox.cabal
+++ b/vector-th-unbox.cabal
@@ -1,5 +1,5 @@
 name:           vector-th-unbox
-version:        0.1.0.1
+version:        0.1.0.2
 synopsis:       Deriver for Data.Vector.Unboxed using Template Haskell
 description:
     A Template Haskell deriver for unboxed vectors, given a pair of coercion
@@ -24,9 +24,9 @@
         Data.Vector.Unboxed.Deriving
 
     build-depends:
-        base >= 4.5 && < 5,
-        template-haskell >= 2.8,
-        vector >= 0.9
+        base >= 4.3 && < 5,
+        template-haskell >= 2.5,
+        vector >= 0.7
 
 -- vim: et sw=4 ts=4 sts=4:
 
