packages feed

hedis 0.8.1 → 0.8.2

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG view
@@ -1,5 +1,9 @@ # Changelog for Hedis +## 0.8.2++* Fix issue #74 (parsing exponentials)+ ## 0.8.1  * Export unRedis/reRedis internalish functions which let you define
hedis.cabal view
@@ -1,5 +1,5 @@ name:               hedis-version:            0.8.1+version:            0.8.2 synopsis:     Client library for the Redis datastore: supports full command set,     pipelining.
src/Database/Redis/Types.hs view
@@ -13,7 +13,7 @@ #endif import Control.DeepSeq import Data.ByteString.Char8 (ByteString, pack)-import qualified Data.ByteString.Lex.Fractional as F (readSigned, readDecimal)+import qualified Data.ByteString.Lex.Fractional as F (readSigned, readExponential) import qualified Data.ByteString.Lex.Integral as I (readSigned, readDecimal) import GHC.Generics @@ -66,7 +66,7 @@         maybe (Left r) (Right . fst) . I.readSigned I.readDecimal =<< decode r  instance RedisResult Double where-    decode r = maybe (Left r) (Right . fst) . F.readSigned F.readDecimal =<< decode r+    decode r = maybe (Left r) (Right . fst) . F.readSigned F.readExponential =<< decode r  instance RedisResult Status where     decode (SingleLine s) = Right $ case s of