@@ -27,7 +27,7 @@ into upgrade problems, please file an issue with details.
28* The `ToJSON` class has a new method, `toEncoding`, that allows
28* The `ToJSON` class has a new method, `toEncoding`, that allows
29 direct encoding from a Haskell value to a lazy bytestring without
29 direct encoding from a Haskell value to a lazy bytestring without
30− construction of an intermediate Value.
30+ construction of an intermediate `Value`.
32 The performance benefits of direct encoding are significant: more
32 The performance benefits of direct encoding are significant: more
33 than 2x faster than before, with less than 1/3 the memory usage.
33 than 2x faster than before, with less than 1/3 the memory usage.
@@ -35,7 +35,12 @@ into upgrade problems, please file an issue with details.
35 To preserve API compatibility across upgrades from older versions of
35 To preserve API compatibility across upgrades from older versions of
36 this library, the default implementation of `toEncoding` uses
36 this library, the default implementation of `toEncoding` uses
37 `toJSON`. You will *not* see any performance improvement unless you
37 `toJSON`. You will *not* see any performance improvement unless you
38− write an implementation of toEncoding.
38+ write an implementation of `toEncoding`, which can be very simple:
41+ instance ToJSON Coord where
42+ toEncoding = 'genericToEncoding' 'defaultOptions'
40 (Behind the scenes, the `encode` function uses `toEncoding` now, so
45 (Behind the scenes, the `encode` function uses `toEncoding` now, so
41 if you implement `toEncoding` for your types, you should see a
46 if you implement `toEncoding` for your types, you should see a
@@ -163,9 +168,9 @@ into upgrade problems, please file an issue with details.
163 * The `Fixed` class
168 * The `Fixed` class
164 * ISO-8601 dates: `UTCTime`, `ZonedTime`, and `TimeZone`
169 * ISO-8601 dates: `UTCTime`, `ZonedTime`, and `TimeZone`
166−* Added accessor functions for inspecting Values.
171+* Added accessor functions for inspecting `Value`s.
168−* Added eitherDecode function that returns an error message if
173+* Added `eitherDecode` function that returns an error message if
169 decoding fails.
174 decoding fails.
171# 0.5 to 0.6
176# 0.5 to 0.6