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

Shrun.Configuration.Data.FileLogging

Synopsis

Documentation

data FileLogInitP (p :: ConfigPhase) Source #

Initial file log params, for usage before we create the final Env.

Constructors

MkFileLogInitP 

Fields

Instances

Instances details
(k ~ A_Lens, a ~ ConfigPhaseF p FileMode, b ~ ConfigPhaseF p FileMode) => LabelOptic "mode" k (FileLogInitP p) (FileLogInitP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ FileLogPathF p, b ~ FileLogPathF p) => LabelOptic "path" k (FileLogInitP p) (FileLogInitP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ ConfigPhaseF p FileSizeMode, b ~ ConfigPhaseF p FileSizeMode) => LabelOptic "sizeMode" k (FileLogInitP p) (FileLogInitP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

data FileLogOpened Source #

Params after we have opened the file for logging.

Constructors

MkFileLogOpened 

Fields

data FileLoggingP (p :: ConfigPhase) Source #

Holds file logging config.

Constructors

MkFileLoggingP 

Fields

Instances

Instances details
DecodeTOML FileLoggingToml Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ ConfigPhaseMaybeF p (Truncation 'TruncCommandName), b ~ ConfigPhaseMaybeF p (Truncation 'TruncCommandName)) => LabelOptic "commandNameTrunc" k (FileLoggingP p) (FileLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ SwitchF p DeleteOnSuccessSwitch, b ~ SwitchF p DeleteOnSuccessSwitch) => LabelOptic "deleteOnSuccess" k (FileLoggingP p) (FileLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ FileLogFileF p, b ~ FileLogFileF p) => LabelOptic "file" k (FileLoggingP p) (FileLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ LineTruncF p, b ~ LineTruncF p) => LabelOptic "lineTrunc" k (FileLoggingP p) (FileLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(k ~ A_Lens, a ~ ConfigPhaseF p FileLogStripControl, b ~ ConfigPhaseF p FileLogStripControl) => LabelOptic "stripControl" k (FileLoggingP p) (FileLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Show (FileLoggingP 'ConfigPhaseArgs) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Show (FileLoggingP 'ConfigPhaseMerged) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Show (FileLoggingP 'ConfigPhaseToml) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Eq (FileLoggingP 'ConfigPhaseArgs) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Eq (FileLoggingP 'ConfigPhaseMerged) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Eq (FileLoggingP 'ConfigPhaseToml) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

(Default (FileLogFileF p), Default (ConfigPhaseMaybeF p (Truncation 'TruncCommandName)), Default (SwitchF p DeleteOnSuccessSwitch), Default (LineTruncF p), Default (ConfigPhaseF p FileLogStripControl)) => Default (FileLoggingP p) Source # 
Instance details

Defined in Shrun.Configuration.Data.FileLogging

Methods

def :: FileLoggingP p Source #

withFileLoggingEnv :: (HasCallStack, MonadFileWriter m, MonadHandleWriter m, MonadPathReader m, MonadPathWriter m, MonadSTM m, MonadTerminal m) => Maybe FileLoggingMerged -> (Maybe FileLoggingEnv -> m a) -> m a Source #

Given merged FileLogging config, constructs a FileLoggingEnv and calls the continuation.