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 |
Documentation
data OverrideAction Source #
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group,
like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
This option is usually set to none. It does not affect how the rules in
the rule group are evaluated. If you want the rules in the rule group to
only count matches, do not use this and instead use the rule action
override option, with Count
action, in your rule group reference
statement settings.
See: newOverrideAction
smart constructor.
OverrideAction' | |
|
Instances
newOverrideAction :: OverrideAction Source #
Create a value of OverrideAction
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:count:OverrideAction'
, overrideAction_count
- Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in
the rule group are evaluated. If you want the rules in the rule group to
only count matches, do not use this and instead use the rule action
override option, with Count
action, in your rule group reference
statement settings.
$sel:none:OverrideAction'
, overrideAction_none
- Don't override the rule group evaluation result. This is the most
common setting.
overrideAction_count :: Lens' OverrideAction (Maybe CountAction) Source #
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in
the rule group are evaluated. If you want the rules in the rule group to
only count matches, do not use this and instead use the rule action
override option, with Count
action, in your rule group reference
statement settings.
overrideAction_none :: Lens' OverrideAction (Maybe NoneAction) Source #
Don't override the rule group evaluation result. This is the most common setting.