diff --git a/library/PostgreSQLBinary/Encoder/Builder.hs b/library/PostgreSQLBinary/Encoder/Builder.hs
--- a/library/PostgreSQLBinary/Encoder/Builder.hs
+++ b/library/PostgreSQLBinary/Encoder/Builder.hs
@@ -60,7 +60,7 @@
 numeric x =
   int16BE (fromIntegral componentsAmount) <>
   int16BE (fromIntegral pointIndex) <>
-  int16BE signCode <>
+  word16BE signCode <>
   int16BE (fromIntegral trimmedExponent) <>
   foldMap int16BE components
   where
diff --git a/library/PostgreSQLBinary/Numeric.hs b/library/PostgreSQLBinary/Numeric.hs
--- a/library/PostgreSQLBinary/Numeric.hs
+++ b/library/PostgreSQLBinary/Numeric.hs
@@ -3,9 +3,9 @@
 import PostgreSQLBinary.Prelude
 
 
-posSignCode = 0x0000 :: Int16
-negSignCode = 0x4000 :: Int16
-nanSignCode = 0xC000 :: Int16
+posSignCode :: Word16 = 0x0000
+negSignCode :: Word16 = 0x4000
+nanSignCode :: Word16 = 0xC000
 
 {-# INLINE extractComponents #-}
 extractComponents :: Integral a => a -> [Int16]
diff --git a/postgresql-binary.cabal b/postgresql-binary.cabal
--- a/postgresql-binary.cabal
+++ b/postgresql-binary.cabal
@@ -1,7 +1,7 @@
 name:
   postgresql-binary
 version:
-  0.5.2
+  0.5.2.1
 synopsis:
   Encoders and decoders for the PostgreSQL's binary format
 description:
@@ -66,7 +66,7 @@
     PostgreSQLBinary.Decoder
   build-depends:
     -- parsers:
-    attoparsec >= 0.10 && < 0.13,
+    attoparsec >= 0.10 && < 0.14,
     -- data:
     uuid == 1.3.*,
     time >= 1.4 && < 1.6,
@@ -103,7 +103,7 @@
     postgresql-binary,
     HTF == 0.12.*,
     quickcheck-instances == 0.3.*,
-    QuickCheck >= 2.7 && < 2.8,
+    QuickCheck >= 2.7 && < 2.9,
     -- database:
     postgresql-libpq == 0.9.*,
     -- data:
@@ -135,7 +135,7 @@
   build-depends:
     postgresql-binary,
     -- benchmarking:
-    criterion == 1.0.*,
+    criterion >= 1.0 && < 1.2,
     -- data:
     time >= 1.4 && < 1.6,
     scientific >= 0.2 && < 0.4,
@@ -166,7 +166,7 @@
   build-depends:
     postgresql-binary,
     -- benchmarking:
-    criterion == 1.0.*,
+    criterion >= 1.0 && < 1.2,
     -- data:
     time >= 1.4 && < 1.6,
     scientific >= 0.2 && < 0.4,
