Marcin Tolysz

Results 36 comments of Marcin Tolysz

On that note could we have an option to show dates in "ISO 8601" format?

As long as it is possible to generate `null` or omit for the same key... it will be awesome. Adding `Missing` allows to generate instances... as if the leaf would...

On the object level we have only `Maybe` and we can only chose it once for every field... and there is no way to change it... we need to have...

`dat NullOrUndefined a = N' | U' | NullOrUndefined a` Anything 3 state is fine. In my universe I used `Possible`. You will need to add `Missing` to the `Object`...

Problem reoccurring all over: https://github.com/bos/aeson/issues/323 (https://github.com/bos/aeson/compare/master...tolysz:Missing_v10 ) really is the only sane answer :) Basically whan we have `ommit nothing` `Nothing` -> `Ommited` otherwise `Nothing` -> `Null` And it simply...

Sorry, I answered it there (now). I simply lost entropy to produce more constructive arguments. But the basic idea is to always omit the new constructor and always map Null...

With the proposed additional value ``` Nothing -> Ommited Just Just a -> toJson a Just Nothing -> Null But I guess a newtype wrapper would be better (eg. `Possible`)...

You are right: `Possible` is the exact type you say. My only problem is: `Maybe` is special in `aeson`. Records (`Map`s) are removing `Nothing` for all keys if some template...

Even if I make a `newtype` I will still have to deal with `omittableNothing` i.e. I will have to modify the type which imports my new one. Either way this...

Generic or not I will not be able to use "toJSON", but I will be able to do it via toEncoding, thus it is a partial answer. I.e. the way...