aeson-pretty 0.5.2 → 0.6
raw patch · 2 files changed
+9/−8 lines, 2 filesdep ~aesonPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: aeson
API changes (from Hackage documentation)
Files
- Data/Aeson/Encode/Pretty.hs +6/−5
- aeson-pretty.cabal +3/−3
Data/Aeson/Encode/Pretty.hs view
@@ -34,11 +34,12 @@ -> (Indent -> a -> Builder) -> [a] -> Builder-fromCompound ind (delimL,delimR) fromItem items =- delimL <>- if null items then mempty- else "\n" <> items' <> "\n" <> fromIndent ind <>- delimR+fromCompound ind (delimL,delimR) fromItem items = mconcat+ [ delimL+ , if null items then mempty+ else "\n" <> items' <> "\n" <> fromIndent ind+ , delimR+ ] where items' = mconcat . intersperse ",\n" $ map (\item -> fromIndent (ind+1) <> fromItem (ind+1) item)
aeson-pretty.cabal view
@@ -1,5 +1,5 @@ name: aeson-pretty-version: 0.5.2+version: 0.6 license: BSD3 license-file: LICENSE category: Text, Web, JSON, Pretty Printer@@ -42,7 +42,7 @@ buildable: False else build-depends:- aeson >= 0.5 && < 0.7,+ aeson == 0.6.*, attoparsec == 0.10.*, base == 4.*, bytestring == 0.9.*,@@ -60,7 +60,7 @@ Data.Aeson.Encode.Pretty build-depends:- aeson == 0.5.0.*,+ aeson == 0.6.*, attoparsec == 0.10.*, base == 4.*, bytestring == 0.9.*,