aeson-casing 0.1.0.4 → 0.1.0.5
raw patch · 2 files changed
+4/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
aeson-casing.cabal view
@@ -1,6 +1,6 @@ name: aeson-casing-version: 0.1.0.4+version: 0.1.0.5 synopsis: Tools to change the formatting of field names in Aeson instances. description: Tools to change the formatting of field names in Aeson
src/Data/Aeson/Casing/Internal.hs view
@@ -40,13 +40,13 @@ | otherwise = x : u xs -- | Camel casing, where the words are separated by the first letter of each--- word being a capitol. However, the first letter of the field is never a--- capitol.+-- word being a capital. However, the first letter of the field is never a+-- capital. camelCase :: String -> String camelCase = applyFirst toLower -- | Pascal casing, where the words are separated by the first letter of each--- word being a capitol. The first letter of the field is always a capitol.+-- word being a capital. The first letter of the field is always a capital. pascalCase :: String -> String pascalCase = applyFirst toUpper