X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fspecialise%2FSpecialise.lhs;h=67dc39cb23bdd8f63627a3b1f120814131e34578;hp=37d5d813a2414c51a95cd274b685635b99e7b946;hb=fb236fbbea7f12293b030892c6dc866a96566200;hpb=d8c0a66c1e5d357eae882963ee6834f485868d22 diff --git a/compiler/specialise/Specialise.lhs b/compiler/specialise/Specialise.lhs index 37d5d81..67dc39c 100644 --- a/compiler/specialise/Specialise.lhs +++ b/compiler/specialise/Specialise.lhs @@ -805,10 +805,10 @@ specDefn subst calls (fn, rhs) rhs_uds `plusUDs` plusUDList spec_uds) | otherwise -- No calls or RHS doesn't fit our preconceptions - = WARN( notNull calls_for_me, ptext SLIT("Missed specialisation opportunity for") <+> ppr fn ) do + = WARN( notNull calls_for_me, ptext SLIT("Missed specialisation opportunity for") <+> ppr fn ) -- Note [Specialisation shape] - (rhs', rhs_uds) <- specExpr subst rhs - return ((fn, rhs'), [], rhs_uds) + (do { (rhs', rhs_uds) <- specExpr subst rhs + ; return ((fn, rhs'), [], rhs_uds) }) where fn_type = idType fn