json-encoder 0.1.6 → 0.1.7
raw patch · 2 files changed
+11/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ JSONEncoder: row :: Value a -> Object (Text, a)
Files
- json-encoder.cabal +1/−1
- library/JSONEncoder.hs +10/−0
json-encoder.cabal view
@@ -1,7 +1,7 @@ name: json-encoder version:- 0.1.6+ 0.1.7 synopsis: A direct-to-bytes single-pass JSON encoder with a declarative DSL description:
library/JSONEncoder.hs view
@@ -14,6 +14,7 @@ -- * Object Object, field,+ row, -- * Array Array, homo,@@ -123,6 +124,15 @@ producer >>> mappend (Builders.asciiChar ':') >>> mappend (Builders.stringLiteral name)++row :: Value a -> Object (Text, a)+row (Value (Op valueProducer)) =+ Object (Op producer)+ where+ producer (key, value) =+ Builders.stringLiteral key <>+ Builders.asciiChar ':' <>+ valueProducer value -- * Array