alga-0.1.0: Algorithmic automation for various DAWs

Safe HaskellNone
LanguageHaskell2010

Alga.Configuration

Synopsis

Documentation

type Params = Map String String Source

Collection of configuration parameters. They are kept as Strings and then converted on request.

parseConfig :: String -> Text -> Either String Params Source

Parse configuration file.

lookupCfg Source

Arguments

:: Parsable a 
=> Params

Collection of configuration parameters

-> String

Name of parameter to lookup

-> a

Fallback value

-> a

Result

Lookup a value from configuration parameters. Type of result determines how value will be interpreted.