packages feed

aeson-pretty 0.8.1 → 0.8.2

raw patch · 2 files changed

+5/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Data/Aeson/Encode/Pretty.hs view
@@ -87,7 +87,9 @@ data Indent = Spaces Int | Tab  data NumberFormat-  -- | Use decimal notation for values between 0.1 and 9,999,999, and scientific+  -- | The standard behaviour of the 'Aeson.encode' function. Uses+  --   integer literals for integers (1, 2, 3...), simple decimals+  --   for fractional values between 0.1 and 9,999,999, and scientific   --   notation otherwise.   = Generic   -- | Scientific notation (e.g. 2.3e123).@@ -195,7 +197,7 @@  fromNumber :: PState -> S.Scientific -> Builder fromNumber st x = case pNumFormat st of-  Generic    -> formatScientificBuilder S.Generic Nothing x+  Generic    -> Aeson.encodeToTextBuilder $ Number x   Scientific -> formatScientificBuilder S.Exponent Nothing x   Decimal    -> formatScientificBuilder S.Fixed Nothing x   Custom f   -> f x
aeson-pretty.cabal view
@@ -1,5 +1,5 @@ name:           aeson-pretty-version:        0.8.1+version:        0.8.2 license:        BSD3 license-file:   LICENSE category:       Text, Web, JSON, Pretty Printer