Commits

basvandijk committed 38dca2c

Change default encoding options to include Nothing fields by default
I think this is a more sensible default.

  • Participants
  • Parent commits 96b9638

Comments (0)

Files changed (1)

Data/Aeson/Types/Internal.hs

 -- { 'fieldNameModifier'       = id
 -- , 'constructorNameModifier' = id
 -- , 'nullaryToString'         = True
--- , 'omitNothingFields'       = True
+-- , 'omitNothingFields'       = False
 -- , 'sumEncoding'             = 'defaultObjectWithType'
 -- }
 -- @
                  { fieldNameModifier       = id
                  , constructorNameModifier = id
                  , nullaryToString         = True
-                 , omitNothingFields       = True
+                 , omitNothingFields       = False
                  , sumEncoding             = defaultObjectWithType
                  }