charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Runner.Toml

Description

Provides TOML configuration.

Synopsis

Documentation

data TomlConfig Source #

Holds TOML configuration.

Constructors

MkTomlConfig 

Fields

Instances

Instances details
Show TomlConfig Source # 
Instance details

Defined in Charon.Runner.Toml

Eq TomlConfig Source # 
Instance details

Defined in Charon.Runner.Toml

DecodeTOML TomlConfig Source # 
Instance details

Defined in Charon.Runner.Toml

(k ~ A_Lens, a ~ Maybe Backend, b ~ Maybe Backend) => LabelOptic "backend" k TomlConfig TomlConfig a b Source # 
Instance details

Defined in Charon.Runner.Toml

(k ~ A_Lens, a ~ Maybe (Maybe LogLevel), b ~ Maybe (Maybe LogLevel)) => LabelOptic "logLevel" k TomlConfig TomlConfig a b Source # 
Instance details

Defined in Charon.Runner.Toml

(k ~ A_Lens, a ~ Maybe FileSizeMode, b ~ Maybe FileSizeMode) => LabelOptic "logSizeMode" k TomlConfig TomlConfig a b Source # 
Instance details

Defined in Charon.Runner.Toml

(k ~ A_Lens, a ~ Maybe (PathI 'TrashHome), b ~ Maybe (PathI 'TrashHome)) => LabelOptic "trashHome" k TomlConfig TomlConfig a b Source # 
Instance details

Defined in Charon.Runner.Toml

mergeConfigs :: Args -> TomlConfig -> (TomlConfig, CommandP2) Source #

Merges the args and toml config into a single toml config. If some field F is specified by both args and toml config, then args takes precedence.