Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Panfiguration h = Panfiguration {
- fieldNameCase :: First Case
- loggerFunction :: First (String -> IO ())
- sources :: [Source h]
- data Result a = Result {
- resultSources :: [String]
- resultUsed :: [String]
- resultContent :: Maybe a
- data Source h = Source {}
- 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
- type Panfigurable h = (FieldNamesB h, TraversableB h, ApplicativeB h, ConstraintsB h, AllB Show h, AllB FromParam h)
- exec :: Panfigurable h => Panfiguration h -> IO (h Result)
- run :: (BareB b, Panfigurable (b Covered)) => Panfiguration (b Covered) -> IO (b Bare Identity)
- runMaybe :: Panfigurable h => Panfiguration h -> IO (h Maybe)
Documentation
data Panfiguration h Source #
Panfiguration | |
|
Instances
Monoid (Panfiguration h) Source # | |
Defined in Panfiguration.Core mempty :: Panfiguration h # mappend :: Panfiguration h -> Panfiguration h -> Panfiguration h # mconcat :: [Panfiguration h] -> Panfiguration h # | |
Semigroup (Panfiguration h) Source # | |
Defined in Panfiguration.Core (<>) :: Panfiguration h -> Panfiguration h -> Panfiguration h # sconcat :: NonEmpty (Panfiguration h) -> Panfiguration h # stimes :: Integral b => b -> Panfiguration h -> Panfiguration h # |
Result | |
|
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
type Panfigurable h = (FieldNamesB h, TraversableB h, ApplicativeB h, ConstraintsB h, AllB Show h, AllB FromParam h) Source #
exec :: Panfigurable h => Panfiguration h -> IO (h Result) Source #
Parse all the relevant environment variables and command line options, then merges them.
run :: (BareB b, Panfigurable (b Covered)) => Panfiguration (b Covered) -> IO (b Bare Identity) Source #
runMaybe :: Panfigurable h => Panfiguration h -> IO (h Maybe) Source #