bugsnag-haskell-0.0.4.1: Bugsnag error reporter for Haskell
Safe HaskellNone
LanguageHaskell2010

Data.Aeson.Ext

Description

Orphan instances and shared Generic JSON options.

Synopsis

Documentation

bsAesonOptions :: String -> Options Source #

Our custom Aeson Options

Omits Nothing fields, and drops/lowers accordingly:

>>> fieldLabelModifier (bsAesonOptions "bs") "bsReleaseStage"
"releaseStage"

For sums, the first argument is taken as a suffix:

>>> constructorTagModifier (bsAesonOptions "ReasonType") "UnhandledExceptionReasonType"
"unhandledException"

Orphan instances