Source

aeson / Data / Aeson / Types / Internal.hs

Diff from to

Data/Aeson/Types/Internal.hs

     , constructorTagModifier :: String -> String
       -- ^ Function applied to constructor tags which could be handy
       -- for lower-casing them for example.
-    , nullaryToString :: Bool
+    , allNullaryToStringTag :: Bool
       -- ^ If 'True' the constructors of a datatype, with /all/
       -- nullary constructors, will be encoded to just a string with
       -- the constructor tag. If 'False' the encoding will always
 -- 'Options'
 -- { 'fieldLabelModifier'      = id
 -- , 'constructorTagModifier'  = id
--- , 'nullaryToString'         = True
+-- , 'allNullaryToStringTag'   = True
 -- , 'omitNothingFields'       = False
 -- , 'sumEncoding'             = 'defaultTaggedObject'
 -- }
 defaultOptions = Options
                  { fieldLabelModifier      = id
                  , constructorTagModifier  = id
-                 , nullaryToString         = True
+                 , allNullaryToStringTag   = True
                  , omitNothingFields       = False
                  , sumEncoding             = defaultTaggedObject
                  }