generic-aeson-0.2.0.14: 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 :: Type -> Meta -> (Type -> Type) -> Type -> Type) i c (f :: Type -> Type) p. Constructor c => Settings -> t i c f p -> Text Source #

selNameT :: forall (t :: Type -> Meta -> (Type -> Type) -> Type -> Type) i s (f :: Type -> Type) 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