generic-aeson-0.2.0.11: Derivation of Aeson instances using GHC generics.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Generics.Generic.Aeson.Util

Description

Helper functions that can be reused by libraries interoperating with generic-aeson.

Synopsis

Documentation

formatLabel :: Settings -> Text -> Text Source #

Lowercases the first letter and strips leading and trailing underscores.

conNameT :: forall (t :: * -> Meta -> (* -> *) -> * -> *) i c (f :: * -> *) p. Constructor c => Settings -> t i c f p -> Text Source #

selNameT :: forall (t :: * -> Meta -> (* -> *) -> * -> *) i s (f :: * -> *) p. Selector s => Settings -> t i s f p -> Maybe Text Source #

data Settings Source #

Constructors

Settings 

Instances

Instances details
Show Settings Source # 
Instance details

Defined in Generics.Generic.Aeson.Util