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 #

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 #

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

data Settings #

Constructors

Settings 

Instances