diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-03-24 20:20:26 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-03-24 20:20:26 -0400 |
| commit | 16ea40620ef2dbd62a2e8d5d8eb153e03d0c5848 (patch) | |
| tree | 741754986e60b4e5e451da2573384840c5575b35 /src/Propellor/PropAccum.hs | |
| parent | b7655817371807ed44e89a3dd52a30846544832a (diff) | |
ported most of PropAccum
Diffstat (limited to 'src/Propellor/PropAccum.hs')
| -rw-r--r-- | src/Propellor/PropAccum.hs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Propellor/PropAccum.hs b/src/Propellor/PropAccum.hs index 85a30af5..7c838c92 100644 --- a/src/Propellor/PropAccum.hs +++ b/src/Propellor/PropAccum.hs @@ -6,7 +6,7 @@ module Propellor.PropAccum , (&) , (&^) , (!) - , propagateContainer + --, propagateContainer ) where import Data.Monoid @@ -33,7 +33,7 @@ class PropAccum h where -- | Like addProp, but adds the property at the front of the list. addPropFront :: IsProp p => h -> p -> h - getProperties :: h -> [Property HasInfo] + getProperties :: h -> [ChildProperty] -- | Adds a property to a `Host` or other `PropAccum` -- @@ -46,7 +46,7 @@ class PropAccum h where (&^) = addPropFront -- | Adds a property in reverted form. -(!) :: IsProp (RevertableProperty i) => PropAccum h => h -> RevertableProperty i -> h +(!) :: IsProp (RevertableProperty undometatypes setupmetatypes) => PropAccum h => h -> RevertableProperty setupmetatypes undometatypes -> h h ! p = h & revert p infixl 1 & @@ -60,6 +60,8 @@ instance PropAccum Host where (getInfoRecursive p <> is) getProperties = hostProperties +{- + -- | Adjust the provided Property, adding to its -- propertyChidren the properties of the provided container. -- @@ -72,9 +74,10 @@ propagateContainer :: (PropAccum container) => String -> container - -> Property HasInfo - -> Property HasInfo -propagateContainer containername c prop = infoProperty + -> Property metatypes + -> Property metatypes +propagateContainer containername c prop = Property + undefined (propertyDesc prop) (propertySatisfy prop) (propertyInfo prop) @@ -86,3 +89,5 @@ propagateContainer containername c prop = infoProperty (propagatableInfo (propertyInfo p)) cs = map go (propertyChildren p) in infoProperty (propertyDesc p) (propertySatisfy p) i cs + +-} |
