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 :: Type -> Meta -> (Type -> Type) -> Type -> Type) i c (f :: Type -> Type) p. Constructor c => Settings -> t i c f p -> Text
- selNameT :: forall (t :: Type -> Meta -> (Type -> Type) -> Type -> Type) i s (f :: Type -> Type) 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 :: Type -> Meta -> (Type -> Type) -> Type -> Type) i c (f :: Type -> Type) p. Constructor c => Settings -> t i c f p -> Text Source #
selNameT :: forall (t :: Type -> Meta -> (Type -> Type) -> Type -> Type) i s (f :: Type -> Type) p. Selector s => Settings -> t i s f p -> Maybe Text Source #
module Generics.Generic.IsEnum