diff options
author | simonpj@microsoft.com <unknown> | 2008-01-25 16:31:01 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2008-01-25 16:31:01 +0000 |
commit | fb236fbbea7f12293b030892c6dc866a96566200 (patch) | |
tree | 3c1e7c6f0ac1633c5e6f17266a99bed147c0f99d /compiler/specialise/Specialise.lhs | |
parent | d8c0a66c1e5d357eae882963ee6834f485868d22 (diff) | |
download | haskell-fb236fbbea7f12293b030892c6dc866a96566200.tar.gz |
Fix do-notation so that it works with -DDEBUG
Diffstat (limited to 'compiler/specialise/Specialise.lhs')
-rw-r--r-- | compiler/specialise/Specialise.lhs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/specialise/Specialise.lhs b/compiler/specialise/Specialise.lhs index 37d5d813a2..67dc39cb23 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 |