@@ -270,11 +270,11 @@ elabInterface info_in syn_in doc what fc constraints tn tnfc ps pDocs fds ds mcn
270 = do when (not $ null cs) . tclift
270 = do when (not $ null cs) . tclift
271 $ tfail (At fc (Msg "Default super interface implementations can't have constraints."))
271 $ tfail (At fc (Msg "Default super interface implementations can't have constraints."))
272 i <- getIState
272 i <- getIState
273− let isConstrained = any (checkConstrained i n (map pexp ps)) (map snd constraints)
273+ let isConstrained = any (checkConstrained i n (map pexp ps)) (map snd constraints)
274 when (not isConstrained) . tclift
274 when (not isConstrained) . tclift
275 $ tfail (At fc (Msg "Default implementations must be for a super interface constraint on the containing interface."))
275 $ tfail (At fc (Msg "Default implementations must be for a super interface constraint on the containing interface."))
276 return ()
276 return ()
278 -- First, Check that interface "constraint" has same name & args as default implementation name & args (not checking FC)
278 -- First, Check that interface "constraint" has same name & args as default implementation name & args (not checking FC)
279 -- If not the case, recursively lookup in context for parent interface & recheck the same with parent constraints
279 -- If not the case, recursively lookup in context for parent interface & recheck the same with parent constraints
280 checkConstrained i n args constraint =
280 checkConstrained i n args constraint =