JSONb 1.0.0 → 1.0.1
raw patch · 3 files changed
+4/−4 lines, 3 filesdep ~attoparsecdep ~bytestring-triePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: attoparsec, bytestring-trie
API changes (from Hackage documentation)
Files
- JSONb.cabal +1/−1
- Text/JSONb/Decode.hs +1/−1
- test/SimpleUnits.hs +2/−2
JSONb.cabal view
@@ -1,5 +1,5 @@ name : JSONb-version : 1.0.0+version : 1.0.1 category : Text license : BSD3 license-file : LICENSE
Text/JSONb/Decode.hs view
@@ -120,7 +120,7 @@ i <- just_zero <|> positive_number f <- option 0 fractional e <- option 0 (exponentialE *> signed decimal)- return (sign * (i + f) * (10^e))+ return (sign * (i + f) * (10^^e)) where exponentialE = char 'e' <|> char 'E' fractional = do
test/SimpleUnits.hs view
@@ -60,8 +60,8 @@ prop_string_round_trip s = high . escapes $ case round_trip bytes of- Right (JSONb.String b) -> bytes == b- _ -> False+ Right (JSONb.String b) -> bytes == b+ _ -> False where bytes = UTF8.fromString s round_trip = JSONb.decode . JSONb.encode JSONb.Compact . JSONb.String