haskell / aeson

A fast Haskell JSON library
Other
1.26k stars 321 forks source link

FromJSON and ToJSON instances for Sum, Product, Any, All #1106

Closed AliceRixte closed 5 months ago

AliceRixte commented 5 months ago

This pull request replaces the #1101 PR.

Most of Data.Monoid newtypes already had an instance. I added the following ones :

phadej commented 5 months ago

Could you add tests as also as in #1101? Otherwise this looks great!

AliceRixte commented 5 months ago

Could you add tests as also as in #1101? Otherwise this looks great!

Done :-)

phadej commented 5 months ago

Thanks. Released in https://hackage.haskell.org/package/aeson-2.2.3.0

AliceRixte commented 5 months ago

Great ! Thanks a lot for all this amazing work on Aeson !