Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Panfiguration
Contents
Synopsis
- data Panfiguration h
- declCase :: Case -> Panfiguration h
- asCase :: Panfiguration h -> Case -> Panfiguration h
- withNames :: Panfiguration h -> (h (Const String) -> h (Const String)) -> Panfiguration h
- envs :: (TraversableB h, ConstraintsB h, AllB FromParam h) => Panfiguration h
- opts :: (TraversableB h, ConstraintsB h, AllB FromParam h) => Panfiguration h
- defaults :: FunctorB h => h Maybe -> Panfiguration h
- fullDefaults :: (BareB b, FunctorB (b Covered)) => b Bare Identity -> Panfiguration (b Covered)
- logger :: (String -> IO ()) -> Panfiguration h
- run :: (BareB b, Panfigurable (b Covered)) => Panfiguration (b Covered) -> IO (b Bare Identity)
- data Case
- camel :: Case
- snake :: Case
- pattern SNAKE :: Case
- pattern KEBAB :: Case
- kebab :: Case
- class FromParam a
- newtype Secret a = Secret {
- unSecret :: a
- newtype Collect a = Collect {
- unCollect :: [a]
Documentation
data Panfiguration h Source #
Instances
Monoid (Panfiguration h) Source # | |
Defined in Panfiguration.Core Methods mempty :: Panfiguration h # mappend :: Panfiguration h -> Panfiguration h -> Panfiguration h # mconcat :: [Panfiguration h] -> Panfiguration h # | |
Semigroup (Panfiguration h) Source # | |
Defined in Panfiguration.Core Methods (<>) :: Panfiguration h -> Panfiguration h -> Panfiguration h # sconcat :: NonEmpty (Panfiguration h) -> Panfiguration h # stimes :: Integral b => b -> Panfiguration h -> Panfiguration h # |
declCase :: Case -> Panfiguration h Source #
Set the letter case of the data declaration
asCase :: Panfiguration h -> Case -> Panfiguration h Source #
Set the letter case of the sources
withNames :: Panfiguration h -> (h (Const String) -> h (Const String)) -> Panfiguration h Source #
Update names being used for the backends
envs :: (TraversableB h, ConstraintsB h, AllB FromParam h) => Panfiguration h Source #
opts :: (TraversableB h, ConstraintsB h, AllB FromParam h) => Panfiguration h Source #
fullDefaults :: (BareB b, FunctorB (b Covered)) => b Bare Identity -> Panfiguration (b Covered) Source #
Provide all the default values by a plain record
run :: (BareB b, Panfigurable (b Covered)) => Panfiguration (b Covered) -> IO (b Bare Identity) Source #
Naming convention
Parameter
Instances
A newtype wrapper to distinguish confidential values.
show
and error messages from fromParam
mask its contents.
Collect all the specified parameters instead of overriding
Instances
Monoid (Collect a) Source # | |
Semigroup (Collect a) Source # | |
Show a => Show (Collect a) Source # | |
Eq a => Eq (Collect a) Source # | |
Ord a => Ord (Collect a) Source # | |
FromParam a => FromParam (Collect a) Source # | |