X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fstranal%2FWorkWrap.lhs;h=faa26feab807179c37f3fba5e046eeaef022fde8;hb=8ef97aa30a33fb3b536252b2c0459cdf0fd5236f;hp=8bd89c084fac1df049b5f010aa27b8f0db1fc77b;hpb=fb236fbbea7f12293b030892c6dc866a96566200;p=ghc-hetmet.git diff --git a/compiler/stranal/WorkWrap.lhs b/compiler/stranal/WorkWrap.lhs index 8bd89c0..faa26fe 100644 --- a/compiler/stranal/WorkWrap.lhs +++ b/compiler/stranal/WorkWrap.lhs @@ -311,7 +311,7 @@ splitFun fn_id fn_info wrap_dmds res_info inline_prag rhs -- Otherwise we spuriously float stuff out of case-expression join points, -- which is very annoying. get_one_shots (Lam b e) - | isId b = isOneShotLambda b : get_one_shots e + | isIdVar b = isOneShotLambda b : get_one_shots e | otherwise = get_one_shots e get_one_shots (Note _ e) = get_one_shots e get_one_shots other = noOneShotInfo