From 18344c44c4e91a9dfd8ce6aebc3821c460cdfec9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 18 Mar 2017 20:13:46 -0400 Subject: Fix build with pre-AMP ghc. --- src/Propellor/EnsureProperty.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3