Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helper functions that can be reused by libraries interoperating with generic-aeson.
Synopsis
- formatLabel :: Settings -> Text -> Text
- multipleConstructors :: [a] -> Bool
- conNameT :: forall (t :: * -> Meta -> (* -> *) -> * -> *) i c (f :: * -> *) p. Constructor c => Settings -> t i c f p -> Text
- selNameT :: forall (t :: * -> Meta -> (* -> *) -> * -> *) 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 #
conNameT :: forall (t :: * -> Meta -> (* -> *) -> * -> *) i c (f :: * -> *) p. Constructor c => Settings -> t i c f p -> Text Source #
selNameT :: forall (t :: * -> Meta -> (* -> *) -> * -> *) i s (f :: * -> *) p. Selector s => Settings -> t i s f p -> Maybe Text Source #
module Generics.Generic.IsEnum