| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Yaml.Config.Kebab
Description
Provides kebab-case instances for aeson.
Synopsis
- newtype AesonKebab a = AesonKebab a
- aesonKebabOptions :: Options
- kebab :: String -> String
- kebabName :: Name -> String
- getName :: Name -> String
Documentation
newtype AesonKebab a Source #
A DerivingVia wrapper that only turns all fields into kebab-case. No other field processing occurs, which also means no field prefix stripping.
Constructors
| AesonKebab a |
Instances
| (Generic a, GToJSON Zero (Rep a), GToEncoding Zero (Rep a)) => ToJSON (AesonKebab a) Source # | |
Defined in Data.Yaml.Config.Kebab Methods toJSON :: AesonKebab a -> Value # toEncoding :: AesonKebab a -> Encoding # toJSONList :: [AesonKebab a] -> Value # toEncodingList :: [AesonKebab a] -> Encoding # | |
| (Generic a, GFromJSON Zero (Rep a)) => FromJSON (AesonKebab a) Source # | |
Defined in Data.Yaml.Config.Kebab Methods parseJSON :: Value -> Parser (AesonKebab a) # parseJSONList :: Value -> Parser [AesonKebab a] # | |
aesonKebabOptions :: Options Source #
Default Options which sets fieldLabelModifier to use kebab.