shrun-0.9: A utility program for running shell commands concurrently.
Safe HaskellNone
LanguageGHC2021

Shrun.Configuration.Data.Core

Synopsis

Types

data CoreConfigP (p :: ConfigPhase) Source #

Holds core configuration data.

Constructors

MkCoreConfigP 

Fields

Instances

Instances details
(k ~ A_Lens, a ~ TomlOptF p (CommandLoggingP p), b ~ TomlOptF p (CommandLoggingP p)) => LabelOptic "commandLogging" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(k ~ A_Lens, a ~ TomlOptF p (CommonLoggingP p), b ~ TomlOptF p (CommonLoggingP p)) => LabelOptic "commonLogging" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(k ~ A_Lens, a ~ TomlOptF p (ConsoleLoggingP p), b ~ TomlOptF p (ConsoleLoggingP p)) => LabelOptic "consoleLogging" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(k ~ A_Lens, a ~ ArgsOnlyDetF p (FileLoggingP p), b ~ ArgsOnlyDetF p (FileLoggingP p)) => LabelOptic "fileLogging" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(k ~ A_Lens, a ~ ConfigPhaseMaybeF p Text, b ~ ConfigPhaseMaybeF p Text) => LabelOptic "init" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(k ~ A_Lens, a ~ ArgsOnlyDetF p (NotifyP p), b ~ ArgsOnlyDetF p (NotifyP p)) => LabelOptic "notify" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(k ~ A_Lens, a ~ ConfigPhaseMaybeF p Timeout, b ~ ConfigPhaseMaybeF p Timeout) => LabelOptic "timeout" k (CoreConfigP p) (CoreConfigP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Show (CoreConfigP 'ConfigPhaseArgs) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Show (CoreConfigP 'ConfigPhaseMerged) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Show (CoreConfigP 'ConfigPhaseToml) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Eq (CoreConfigP 'ConfigPhaseArgs) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Eq (CoreConfigP 'ConfigPhaseMerged) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Eq (CoreConfigP 'ConfigPhaseToml) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

(Default (ConfigPhaseMaybeF p Text), Default (ConfigPhaseMaybeF p Timeout), Default (TomlOptF p (CommonLoggingP p)), Default (TomlOptF p (CommandLoggingP p)), Default (TomlOptF p (ConsoleLoggingP p)), Default (ArgsOnlyDetF p (FileLoggingP p)), Default (ArgsOnlyDetF p (NotifyP p))) => Default (CoreConfigP p) Source # 
Instance details

Defined in Shrun.Configuration.Data.Core

Methods

def :: CoreConfigP p Source #

Functions

withCoreEnv :: (HasCallStack, MonadDBus m, MonadFileWriter m, MonadHandleWriter m, MonadPathReader m, MonadPathWriter m, MonadSTM m, MonadTerminal m, MonadThrow m) => CoreConfigMerged -> (CoreConfigEnv -> m a) -> m a Source #

Given a merged CoreConfig, constructs a ConfigEnv and calls the continuation.

Misc