Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Helper functions that can be reused by libraries interoperating with generic-aeson.
- formatLabel :: Settings -> Text -> Text
- multipleConstructors :: [a] -> Bool
- 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
- 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 #
module Generics.Generic.IsEnum