panfiguration-0.0: Merge environment variables and command line options generically
Safe HaskellSafe-Inferred
LanguageHaskell2010

Panfiguration

Synopsis

Documentation

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

fullDefaults :: (BareB b, FunctorB (b Covered)) => b Bare Identity -> Panfiguration (b Covered) Source #

Provide all the default values by a plain record

Naming convention

pattern SNAKE :: Case Source #

pattern KEBAB :: Case Source #

Parameter

class FromParam a Source #

Instances

Instances details
FromParam All Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Any Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam ByteString Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam PortNumber Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Text Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Integer Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Natural Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam () Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Bool Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Char Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Double Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Float Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam Int Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam a => FromParam (Identity a) Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam a => FromParam (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam

(Typeable a, FromParam a) => FromParam (Secret a) Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam a => FromParam (Maybe a) Source # 
Instance details

Defined in Panfiguration.FromParam

FromParam a => FromParam [a] Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

fromParam :: String -> Either String [a] Source #

fromParamList :: String -> Either String [[a]] Source #

mergeParams :: [a] -> [a] -> (Ordering, [a]) Source #

FromParam a => FromParam (Const a b) Source # 
Instance details

Defined in Panfiguration.FromParam

newtype Secret a Source #

A newtype wrapper to distinguish confidential values. show and error messages from fromParam mask its contents.

Constructors

Secret 

Fields

Instances

Instances details
Show a => Show (Secret a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

showsPrec :: Int -> Secret a -> ShowS #

show :: Secret a -> String #

showList :: [Secret a] -> ShowS #

Eq a => Eq (Secret a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

(==) :: Secret a -> Secret a -> Bool #

(/=) :: Secret a -> Secret a -> Bool #

Ord a => Ord (Secret a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

compare :: Secret a -> Secret a -> Ordering #

(<) :: Secret a -> Secret a -> Bool #

(<=) :: Secret a -> Secret a -> Bool #

(>) :: Secret a -> Secret a -> Bool #

(>=) :: Secret a -> Secret a -> Bool #

max :: Secret a -> Secret a -> Secret a #

min :: Secret a -> Secret a -> Secret a #

(Typeable a, FromParam a) => FromParam (Secret a) Source # 
Instance details

Defined in Panfiguration.FromParam

newtype Collect a Source #

Collect all the specified parameters instead of overriding

Constructors

Collect 

Fields

Instances

Instances details
Monoid (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

mempty :: Collect a #

mappend :: Collect a -> Collect a -> Collect a #

mconcat :: [Collect a] -> Collect a #

Semigroup (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

(<>) :: Collect a -> Collect a -> Collect a #

sconcat :: NonEmpty (Collect a) -> Collect a #

stimes :: Integral b => b -> Collect a -> Collect a #

Show a => Show (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

showsPrec :: Int -> Collect a -> ShowS #

show :: Collect a -> String #

showList :: [Collect a] -> ShowS #

Eq a => Eq (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

(==) :: Collect a -> Collect a -> Bool #

(/=) :: Collect a -> Collect a -> Bool #

Ord a => Ord (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam

Methods

compare :: Collect a -> Collect a -> Ordering #

(<) :: Collect a -> Collect a -> Bool #

(<=) :: Collect a -> Collect a -> Bool #

(>) :: Collect a -> Collect a -> Bool #

(>=) :: Collect a -> Collect a -> Bool #

max :: Collect a -> Collect a -> Collect a #

min :: Collect a -> Collect a -> Collect a #

FromParam a => FromParam (Collect a) Source # 
Instance details

Defined in Panfiguration.FromParam