| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Config.Rule
Synopsis
- newtype RulePolicy = RulePolicy {
- policyRules :: Map Text PrecededRule
- emptyPolicy :: RulePolicy
- data PolicyError
- renderPolicyError :: PolicyError -> Text
- resolvePolicy :: RulePolicy -> RulePatch -> Either [PolicyError] RulePolicy
- newtype RulePatch = RulePatch (Map Text RuleEntry)
- emptyPatch :: RulePatch
- data RuleEntry = RuleEntry {}
Documentation
newtype RulePolicy Source #
Constructors
| RulePolicy | |
Fields
| |
Instances
| Show RulePolicy Source # | |
Defined in Ecluse.Config.Rule Methods showsPrec :: Int -> RulePolicy -> ShowS # show :: RulePolicy -> String # showList :: [RulePolicy] -> ShowS # | |
| Eq RulePolicy Source # | |
Defined in Ecluse.Config.Rule | |
data PolicyError Source #
Constructors
| MissingRuleType Text | |
| UnknownRuleType Text Text | |
| MalformedRule Text Text | |
| SuppressUnknownRule Text |
Instances
| Show PolicyError Source # | |
Defined in Ecluse.Config.Rule Methods showsPrec :: Int -> PolicyError -> ShowS # show :: PolicyError -> String # showList :: [PolicyError] -> ShowS # | |
| Eq PolicyError Source # | |
Defined in Ecluse.Config.Rule | |
renderPolicyError :: PolicyError -> Text Source #
resolvePolicy :: RulePolicy -> RulePatch -> Either [PolicyError] RulePolicy Source #
emptyPatch :: RulePatch Source #
An empty patch that does not override any rules.