generic-aeson-0.1.1: 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 :: Text -> TextSource

Lowercases the first letter and strips leading and trailing underscores.

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

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