diff --git a/lib/Database/PostgreSQL/Opium/FromField.hs b/lib/Database/PostgreSQL/Opium/FromField.hs index b0fb141..b2f14c6 100644 --- a/lib/Database/PostgreSQL/Opium/FromField.hs +++ b/lib/Database/PostgreSQL/Opium/FromField.hs @@ -86,14 +86,14 @@ readInt bs = case BS.length bs of 4 -> pure $ fromIntegral $ readBigEndian @Int32 bs 8 -> pure $ fromIntegral $ readBigEndian @Int bs 2 -> pure $ fromIntegral $ readBigEndian @Int16 bs - _ -> fail "Wrong number bytes for integer" + _ -> fail "Wrong number of bytes for integer" readWord :: Num a => ByteString -> Parser a readWord bs = case BS.length bs of 4 -> pure $ fromIntegral $ readBigEndian @Word32 bs 8 -> pure $ fromIntegral $ readBigEndian @Word bs 2 -> pure $ fromIntegral $ readBigEndian @Word16 bs - _ -> fail "Wrong number bytes for word" + _ -> fail "Wrong number of bytes for word" -- | See https://www.postgresql.org/docs/current/datatype-numeric.html. -- We assume that 'Int' has 64 bits. This is not guaranteed but reasonable enough.