Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ConditionalSpecification = ConditionalSpecification' {}
- newConditionalSpecification :: Bool -> NonEmpty ConditionalBranch -> DefaultConditionalBranch -> ConditionalSpecification
- conditionalSpecification_active :: Lens' ConditionalSpecification Bool
- conditionalSpecification_conditionalBranches :: Lens' ConditionalSpecification (NonEmpty ConditionalBranch)
- conditionalSpecification_defaultBranch :: Lens' ConditionalSpecification DefaultConditionalBranch
Documentation
data ConditionalSpecification Source #
Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
See: newConditionalSpecification
smart constructor.
ConditionalSpecification' | |
|
Instances
newConditionalSpecification Source #
Create a value of ConditionalSpecification
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:active:ConditionalSpecification'
, conditionalSpecification_active
- Determines whether a conditional branch is active. When active
is
false, the conditions are not evaluated.
$sel:conditionalBranches:ConditionalSpecification'
, conditionalSpecification_conditionalBranches
- A list of conditional branches. A conditional branch is made up of a
condition, a response and a next step. The response and next step are
executed when the condition is true.
$sel:defaultBranch:ConditionalSpecification'
, conditionalSpecification_defaultBranch
- The conditional branch that should be followed when the conditions for
other branches are not satisfied. A conditional branch is made up of a
condition, a response and a next step.
conditionalSpecification_active :: Lens' ConditionalSpecification Bool Source #
Determines whether a conditional branch is active. When active
is
false, the conditions are not evaluated.
conditionalSpecification_conditionalBranches :: Lens' ConditionalSpecification (NonEmpty ConditionalBranch) Source #
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
conditionalSpecification_defaultBranch :: Lens' ConditionalSpecification DefaultConditionalBranch Source #
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.