diff options
| author | Joey Hess <joeyh@joeyh.name> | 2014-12-08 01:06:19 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2014-12-08 01:07:25 -0400 |
| commit | 4e9b01a8a7005905ecec37d1cd6a11d3b27676b7 (patch) | |
| tree | 13afcfd63dd6522990ac19a63cb51e1a689391ac /src/Propellor/Property.hs | |
| parent | 42a0c832483296fb111279fc3512a3dfd44f2089 (diff) | |
propellor spin
(cherry picked from commit 1d02d589c79781cc4b0bd82467edbdf64c40f34d)
Diffstat (limited to 'src/Propellor/Property.hs')
| -rw-r--r-- | src/Propellor/Property.hs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Propellor/Property.hs b/src/Propellor/Property.hs index 6371cc09..37fd90d6 100644 --- a/src/Propellor/Property.hs +++ b/src/Propellor/Property.hs @@ -121,12 +121,6 @@ doNothing = property "noop property" noChange withOS :: Desc -> (Maybe System -> Propellor Result) -> Property withOS desc a = property desc $ a =<< getOS -boolProperty :: Desc -> IO Bool -> Property -boolProperty desc a = property desc $ ifM (liftIO a) - ( return MadeChange - , return FailedChange - ) - -- | Undoes the effect of a property. revert :: RevertableProperty -> RevertableProperty revert (RevertableProperty p1 p2) = RevertableProperty p2 p1 |
