summaryrefslogtreecommitdiff
path: root/src/Propellor/EnsureProperty.hs
diff options
context:
space:
mode:
authorJoey Hess2017-03-18 20:13:46 -0400
committerJoey Hess2017-03-18 20:13:46 -0400
commit18344c44c4e91a9dfd8ce6aebc3821c460cdfec9 (patch)
treee124b2238cc7b64e0a18aa15e102ba35144bed92 /src/Propellor/EnsureProperty.hs
parent4ceba4a8c007c9a5c4692c5425114139b47aecdf (diff)
Fix build with pre-AMP ghc.
Diffstat (limited to 'src/Propellor/EnsureProperty.hs')
-rw-r--r--src/Propellor/EnsureProperty.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/EnsureProperty.hs b/src/Propellor/EnsureProperty.hs
index badc7293..ad74bfa8 100644
--- a/src/Propellor/EnsureProperty.hs
+++ b/src/Propellor/EnsureProperty.hs
@@ -46,7 +46,7 @@ ensureProperty
=> OuterMetaTypesWitness outer
-> Property (MetaTypes inner)
-> Propellor Result
-ensureProperty _ = maybe (pure NoChange) catchPropellor . getSatisfy
+ensureProperty _ = maybe (return NoChange) catchPropellor . getSatisfy
-- The name of this was chosen to make type errors a bit more understandable.
type family Cannot_ensureProperty_WithInfo (l :: [a]) :: Bool