diff --git a/Database/Persist/TH.hs b/Database/Persist/TH.hs
--- a/Database/Persist/TH.hs
+++ b/Database/Persist/TH.hs
@@ -28,6 +28,8 @@
     , share
     , derivePersistField
     , persistFieldFromEntity
+      -- * Internal
+    , pack'
     ) where
 
 import Prelude hiding ((++), take, concat, splitAt)
@@ -923,8 +925,8 @@
     lift (SqlNumeric x y) =
         [|SqlNumeric (fromInteger x') (fromInteger y')|]
       where
-        x' = fromIntegral x
-        y' = fromIntegral y
+        x' = fromIntegral x :: Integer
+        y' = fromIntegral y :: Integer
     lift SqlBool = [|SqlBool|]
     lift SqlDay = [|SqlDay|]
     lift SqlTime = [|SqlTime|]
diff --git a/persistent-template.cabal b/persistent-template.cabal
--- a/persistent-template.cabal
+++ b/persistent-template.cabal
@@ -1,5 +1,5 @@
 name:            persistent-template
-version:         1.2.0.4
+version:         1.2.0.5
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
