shrun
Safe HaskellNone
LanguageGHC2021

Shrun.Configuration.Data.CommandLogging

Synopsis

Types

Buffer length

newtype BufferLength Source #

Constructors

MkBufferLength Int 

Instances

Instances details
Num BufferLength Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Show BufferLength Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Eq BufferLength Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Pretty BufferLength Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Default BufferLength Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

DecodeTOML BufferLength Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ An_Iso, a ~ Int, b ~ Int) => LabelOptic "unBufferLength" k BufferLength BufferLength a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Buffer timeout

Report read errors

newtype ReportReadErrorsSwitch Source #

Switch for logging read errors

Instances

Instances details
Bounded ReportReadErrorsSwitch Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Enum ReportReadErrorsSwitch Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Show ReportReadErrorsSwitch Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Eq ReportReadErrorsSwitch Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Default ReportReadErrorsSwitch Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

DecodeTOML ReportReadErrorsSwitch Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ An_Iso, a ~ Bool, b ~ Bool) => LabelOptic "unReportReadErrorsSwitch" k ReportReadErrorsSwitch ReportReadErrorsSwitch a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Main

data CommandLoggingP (p :: ConfigPhase) Source #

Holds config related to (console and file) command logging.

Constructors

MkCommandLoggingP 

Fields

Instances

Instances details
Monoid CommandLoggingToml Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Semigroup CommandLoggingToml Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Pretty CommandLoggingMerged Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Default CommandLoggingArgs Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

DecodeTOML CommandLoggingToml Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ A_Lens, a ~ ConfigPhaseF p BufferLength, b ~ ConfigPhaseF p BufferLength) => LabelOptic "bufferLength" k (CommandLoggingP p) (CommandLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ A_Lens, a ~ ConfigPhaseF p BufferTimeout, b ~ ConfigPhaseF p BufferTimeout) => LabelOptic "bufferTimeout" k (CommandLoggingP p) (CommandLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ A_Lens, a ~ ConfigPhaseF p PollInterval, b ~ ConfigPhaseF p PollInterval) => LabelOptic "pollInterval" k (CommandLoggingP p) (CommandLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ A_Lens, a ~ ConfigPhaseF p ReadSize, b ~ ConfigPhaseF p ReadSize) => LabelOptic "readSize" k (CommandLoggingP p) (CommandLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ A_Lens, a ~ ConfigPhaseF p ReadStrategy, b ~ ConfigPhaseF p ReadStrategy) => LabelOptic "readStrategy" k (CommandLoggingP p) (CommandLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

(k ~ A_Lens, a ~ SwitchF p ReportReadErrorsSwitch, b ~ SwitchF p ReportReadErrorsSwitch) => LabelOptic "reportReadErrors" k (CommandLoggingP p) (CommandLoggingP p) a b Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Show (CommandLoggingP 'ConfigPhaseArgs) Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Show (CommandLoggingP 'ConfigPhaseMerged) Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Show (CommandLoggingP 'ConfigPhaseToml) Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Eq (CommandLoggingP 'ConfigPhaseArgs) Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Eq (CommandLoggingP 'ConfigPhaseMerged) Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Eq (CommandLoggingP 'ConfigPhaseToml) Source # 
Instance details

Defined in Shrun.Configuration.Data.CommandLogging

Functions

toEnv :: CommandLoggingMerged -> CommandLoggingEnv Source #

Creates env version from merged. Requires commands because we pick the read strategy based on the number of commands.

Exceptions