hinit-0.2.2: Generic project initialization tool
Safe HaskellNone
LanguageHaskell2010

Hinit.Config

Description

Global configuration

Synopsis

Documentation

data Config Source #

Constructors

Config 

Instances

Instances details
Eq Config Source # 
Instance details

Defined in Hinit.Config

Methods

(==) :: Config -> Config -> Bool #

(/=) :: Config -> Config -> Bool #

Show Config Source # 
Instance details

Defined in Hinit.Config

Generic Config Source # 
Instance details

Defined in Hinit.Config

Associated Types

type Rep Config :: Type -> Type #

Methods

from :: Config -> Rep Config x #

to :: Rep Config x -> Config #

type Rep Config Source # 
Instance details

Defined in Hinit.Config

askConfig :: forall sig m. Has Terminal sig m => m Config Source #

getConfig :: (Has Terminal sig m, Has (Lift IO) sig m, Has (Throw ConfigParseError) sig m) => m Config Source #

buildContextFromConfig :: Has Time sig m => Text -> Config -> m (Context, Context) Source #

Build two Contexts from a program config