generic-aeson-0.2.0.3: Derivation of Aeson instances using GHC generics.

Safe HaskellSafe-Inferred
LanguageHaskell98

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 c t f a. Constructor c => Settings -> t c f a -> Text Source

selNameT :: forall s t f a. Selector s => Settings -> t s f a -> Maybe Text Source

data Settings Source

Constructors

Settings 

Instances