diff options
| author | Joey Hess <joey@kitenet.net> | 2014-04-02 23:01:40 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-04-02 23:01:40 -0400 |
| commit | 5df3ad13dfdccf01248368bb8e5fc0dc8d164910 (patch) | |
| tree | ecb871a244982f55cc9b6703d54aae6ddf904e34 /Propellor/Property.hs | |
| parent | 5674818300966d4186bf98ef8a075c502271c9cb (diff) | |
awesome new revert operator!
Diffstat (limited to 'Propellor/Property.hs')
| -rw-r--r-- | Propellor/Property.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Propellor/Property.hs b/Propellor/Property.hs index 29f6bb80..e7ec704d 100644 --- a/Propellor/Property.hs +++ b/Propellor/Property.hs @@ -88,3 +88,8 @@ props = [] (&) :: IsProp p => [Property] -> p -> [Property] ps & p = ps ++ [toProp p] infixl 1 & + +-- | Adds a property to the list in reverted form. +(!) :: [Property] -> RevertableProperty -> [Property] +ps ! p = ps ++ [toProp $ revert p] +infixl 1 ! |
