Print tidy rules in user style, to avoid gratuitous uniques
[ghc-hetmet.git] / compiler / simplCore / FloatIn.lhs
index 0ac4295..8938731 100644 (file)
@@ -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}