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

Safe HaskellNone

Generics.Generic.Aeson.Util

Description

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

Synopsis

Documentation

formatLabel :: Settings -> Text -> TextSource

Lowercases the first letter and strips leading and trailing underscores.

conNameT :: forall c t f a. Constructor c => Settings -> t c f a -> TextSource

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

data Settings Source

Constructors

Settings 

Instances