libro-backend-0.1.0.0: Restful data backend of the LiBro app
Safe HaskellSafe-Inferred
LanguageHaskell2010

LiBro.Config

Description

Configuration (file) handling.

Synopsis

Documentation

data StorageConfig Source #

Configuration of storage details.

Instances

Instances details
Show StorageConfig Source # 
Instance details

Defined in LiBro.Config

Default StorageConfig Source # 
Instance details

Defined in LiBro.Config

Methods

def :: StorageConfig #

Eq StorageConfig Source # 
Instance details

Defined in LiBro.Config

data Config Source #

Global settings.

Constructors

Config 

Instances

Instances details
Show Config Source # 
Instance details

Defined in LiBro.Config

Default Config Source # 
Instance details

Defined in LiBro.Config

Methods

def :: Config #

Eq Config Source # 
Instance details

Defined in LiBro.Config

Methods

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

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

MonadReader Config LiBro Source # 
Instance details

Defined in LiBro.Base

Methods

ask :: LiBro Config #

local :: (Config -> Config) -> LiBro a -> LiBro a #

reader :: (Config -> a) -> LiBro a #

parseConfig :: Text -> Either String Config Source #

Parses a Config value from a given Text or gives a parsing error message.

readConfig :: IO (Maybe Config) Source #

Reads a Config value from config.ini. Prints parsing error messages to STDERR when failing.

readConfigFrom :: FilePath -> IO (Maybe Config) Source #

Reads a Config value from the given file path. Prints parsing error messages to STDERR when failing.