Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Helper functions that can be reused by libraries interoperating with generic-aeson.
- formatLabel :: Settings -> Text -> Text
- multipleConstructors :: [a] -> Bool
- conNameT :: forall c t f a. Constructor c => Settings -> t c f a -> Text
- selNameT :: forall s t f a. Selector s => Settings -> t s f a -> Maybe Text
- module Generics.Generic.IsEnum
- data Settings = Settings {}
- defaultSettings :: Settings
Documentation
formatLabel :: Settings -> Text -> Text Source
Lowercases the first letter and strips leading and trailing underscores.
multipleConstructors :: [a] -> Bool Source
conNameT :: forall c t f a. Constructor c => Settings -> t c f a -> Text Source
module Generics.Generic.IsEnum