X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FsimplCore%2FFloatIn.lhs;fp=ghc%2Fcompiler%2FsimplCore%2FFloatIn.lhs;h=061cd4b85d205b2ad5f8f8e2751f8bc42a20105f;hb=23f40f0e9be6d4aa5cf9ea31d73f4013f8e7b4bd;hp=a4002a5c5b9ab1f5d402f357d839105f6fa18ee4;hpb=9b6858cb53438a2651ab00202582b13f95036058;p=ghc-hetmet.git diff --git a/ghc/compiler/simplCore/FloatIn.lhs b/ghc/compiler/simplCore/FloatIn.lhs index a4002a5..061cd4b 100644 --- a/ghc/compiler/simplCore/FloatIn.lhs +++ b/ghc/compiler/simplCore/FloatIn.lhs @@ -323,10 +323,11 @@ bindings are: (a)~inside the scrutinee, (b)~inside one of the alternatives/default [default FVs always {\em first}!]. \begin{code} -fiExpr to_drop (_, AnnCase scrut case_bndr alts) +-- gaw 2004 +fiExpr to_drop (_, AnnCase scrut case_bndr ty alts) = mkCoLets' drop_here1 $ mkCoLets' drop_here2 $ - Case (fiExpr scrut_drops scrut) case_bndr + Case (fiExpr scrut_drops scrut) case_bndr ty (zipWith fi_alt alts_drops_s alts) where -- Float into the scrut and alts-considered-together just like App