on master help sign in
Clarify camelTo2 a little
commit2b2f392c42bca327bcd79c41f1f4b294e5db191a authorBryan O'Sullivan <bos@serpentine.com> dateWed 22 Jul 2015, 13:58 (11 years ago) parentbb01e1a
1 file changed+5−4
changelog.md+5−4
changelog.md+5−4
@@ -55,10 +55,11 @@ into upgrade problems, please file an issue with details.
5555 complete JSON path from the root of the object to the offending
5656 element. This greatly eases debugging.
5757
58−* If you used to use the `camelTo` function to rename fields when
59− using TH or generics, the new `camelTo2` function is smarter. For
60− example, `camelTo` will rename `CamelAPICase` to `camelapi_case`,
61− while `camelTo2` will map it to `camel_api_case`.
58+* If you use Template Haskell or generics, and used to use the
59+ `camelTo` function to rename fields, the new `camelTo2` function is
60+ smarter. For example, `camelTo` will rename `CamelAPICase` to
61+ `camelapi_case` (ugh!), while `camelTo2` will map it to
62+ `camel_api_case` (yay!).
6263
6364* New `ToJSON` and `FromJSON` instances for the following time-related
6465 types: `Day`, `LocalTime`.