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

Safe HaskellSafe
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 t i c f p. Constructor c => Settings -> t i c f p -> Text Source #

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

data Settings Source #

Constructors

Settings