Safe Haskell | None |
---|---|
Language | Haskell2010 |
Options used to derive FromJSON/ToJSON instance. These options generally comply to our style regarding names. Of course sometimes they don't fit one's needs, so treat them as just sensible defaults.
Documentation
defaultOptions :: Options Source #
These options do the following transformations:
1. Names of field
records are assumed to be camelCased, camel
part is removed,
Cased
part is converted to cased
. So camelCased
becomes
cased
. Also all punctuation symbols are dropped before doing it.
2. Constructors are assumed to start with some capitalized prefix
(which finished right before the last capital letter). This prefix
is dropped and then the first letter is lowercased.
leaveTagOptions :: Options Source #
These options are the same as defaultOptions
, but they don't
modify constructor tags.
defaultOptionsPS :: Options Source #
Options used for communication with PureScript by default.