Safe Haskell | None |
---|---|
Language | Haskell98 |
- host :: HostName -> Host
- class PropAccum h where
- addProp :: IsProp p => h -> p -> h
- addPropFront :: IsProp p => h -> p -> h
- getProperties :: h -> [Property HasInfo]
- (&) :: (PropAccum h, IsProp p) => h -> p -> h
- (&^) :: (PropAccum h, IsProp p) => h -> p -> h
- (!) :: IsProp (RevertableProperty i) => PropAccum h => h -> RevertableProperty i -> h
- propagateContainer :: PropAccum container => String -> container -> Property HasInfo -> Property HasInfo
Documentation
host :: HostName -> Host Source
Starts accumulating the properties of a Host.
host "example.com" & someproperty ! oldproperty & otherproperty
class PropAccum h where Source
Something that can accumulate properties.
addProp :: IsProp p => h -> p -> h Source
Adds a property.
addPropFront :: IsProp p => h -> p -> h Source
Like addProp, but adds the property at the front of the list.
getProperties :: h -> [Property HasInfo] Source
(&^) :: (PropAccum h, IsProp p) => h -> p -> h infixl 1 Source
Adds a property before any other properties.
(!) :: IsProp (RevertableProperty i) => PropAccum h => h -> RevertableProperty i -> h infixl 1 Source
Adds a property in reverted form.
propagateContainer :: PropAccum container => String -> container -> Property HasInfo -> Property HasInfo Source
Adjust the provided Property, adding to its propertyChidren the properties of the provided container.
The Info of the propertyChildren is adjusted to only include info that should be propagated out to the Property.
Any PrivInfo that uses HostContext is adjusted to use the name of the container as its context.