Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- customEncodingOptions :: Options
- customEncodingOptionsDropChar :: Char -> Options
- defaultOptsDropChar :: Char -> Options
- newtype CustomEncoded a = CustomEncoded {
- unCustomEncoded :: a
- newtype CustomEncodedLensable a = CustomEncodedLensable {}
Documentation
customEncodingOptions :: Options Source #
Drops record field name prefixes (anything until the first upper-case char) and turns the rest into snake_case.
For example, it converts _recordFieldLabel
into field_label
.
defaultOptsDropChar :: Char -> Options Source #
newtype CustomEncoded a Source #
Instances
(Generic a, GFromJSON Zero (Rep a)) => FromJSON (CustomEncoded a) Source # | |
Defined in Wire.API.Util.Aeson parseJSON :: Value -> Parser (CustomEncoded a) Source # parseJSONList :: Value -> Parser [CustomEncoded a] Source # | |
(Generic a, GToJSON Zero (Rep a)) => ToJSON (CustomEncoded a) Source # | |
Defined in Wire.API.Util.Aeson toJSON :: CustomEncoded a -> Value Source # toEncoding :: CustomEncoded a -> Encoding Source # toJSONList :: [CustomEncoded a] -> Value Source # toEncodingList :: [CustomEncoded a] -> Encoding Source # |
newtype CustomEncodedLensable a Source #
Instances
(Generic a, GFromJSON Zero (Rep a)) => FromJSON (CustomEncodedLensable a) Source # | |
Defined in Wire.API.Util.Aeson parseJSON :: Value -> Parser (CustomEncodedLensable a) Source # parseJSONList :: Value -> Parser [CustomEncodedLensable a] Source # | |
(Generic a, GToJSON Zero (Rep a)) => ToJSON (CustomEncodedLensable a) Source # | |
Defined in Wire.API.Util.Aeson toJSON :: CustomEncodedLensable a -> Value Source # toEncoding :: CustomEncodedLensable a -> Encoding Source # toJSONList :: [CustomEncodedLensable a] -> Value Source # toEncodingList :: [CustomEncodedLensable a] -> Encoding Source # |