@hackage aeson-modern-tojson0.1.1.0

Provide a handy way for derving ToJSON proprely.

aeson-modern-tojson

Provide a newtype to be used with DerivingVia to correctly derive ToJSON.

As simple as:

data W = W Int Int
deriving stock (Generic)
deriving (ToJSON) via (ModernToJSON W)
  • Installation

  • Dependencies (2)

  • Dependents (0)