Safe Haskell | None |
---|---|
Language | Haskell2010 |
Orphan instances and shared
JSON options.Generic
- bsAesonOptions :: String -> Options
Documentation
bsAesonOptions :: String -> Options Source #
Our custom Aeson Options
Omits
fields, and drops/lowers accordingly:Nothing
>>>
fieldLabelModifier (bsAesonOptions "bs") "bsReleaseStage"
"releaseStage"
For sums, the first argument is taken as a suffix:
>>>
constructorTagModifier (bsAesonOptions "ReasonType") "UnhandledExceptionReasonType"
"unhandledException"