X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FsimplCore%2FFloatIn.lhs;h=8938731df07a6c468390f12b4febb875d7e05d77;hb=9bcaaaaa59acff95886ad3675677e58c43106bd2;hp=0ac42959ffc23f9322d1f823af2a91bc42b3fe70;hpb=ec576735c81107dc2947abfd6c9a74b3d0103c4b;p=ghc-hetmet.git diff --git a/compiler/simplCore/FloatIn.lhs b/compiler/simplCore/FloatIn.lhs index 0ac4295..8938731 100644 --- a/compiler/simplCore/FloatIn.lhs +++ b/compiler/simplCore/FloatIn.lhs @@ -21,7 +21,7 @@ import CoreSyn import CoreUtils ( exprIsHNF, exprIsDupable ) import CoreLint ( showPass, endPass ) import CoreFVs ( CoreExprWithFVs, freeVars, freeVarsOf, idRuleVars ) -import Id ( isOneShotBndr ) +import Id ( isOneShotBndr, idType ) import Var import Type ( isUnLiftedType ) import VarSet @@ -370,7 +370,7 @@ noFloatIntoRhs (AnnLam b _) = not (is_one_shot b) noFloatIntoRhs rhs = exprIsHNF (deAnnotate' rhs) -- We'd just float right back out again... is_one_shot :: Var -> Bool -is_one_shot b = isId b && isOneShotBndr b +is_one_shot b = isIdVar b && isOneShotBndr b \end{code}