diff options
author | Ian Lynagh <igloo@earth.li> | 2011-05-25 19:07:51 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-05-25 20:47:26 +0100 |
commit | a5f5a70c41b4bce2715bf5d478171fbaf060cddf (patch) | |
tree | e9be157af01bcb2c9a4ac51e01d3b9c71c0d4307 /compiler/simplCore/SetLevels.lhs | |
parent | ea3a9edda14f952042fa262abd37cc4fa0c1dd6d (diff) | |
download | haskell-sdoc.tar.gz |
More DynFlags + SDocsdoc
Diffstat (limited to 'compiler/simplCore/SetLevels.lhs')
-rw-r--r-- | compiler/simplCore/SetLevels.lhs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/simplCore/SetLevels.lhs b/compiler/simplCore/SetLevels.lhs index 21dca615c3..bddbda2082 100644 --- a/compiler/simplCore/SetLevels.lhs +++ b/compiler/simplCore/SetLevels.lhs @@ -902,9 +902,10 @@ abstractVars dest_lvl (LE { le_lvl_env = lvl_env, le_env = id_env }) fvs -- We are going to lambda-abstract, so nuke any IdInfo, -- and add the tyvars of the Id (if necessary) - zap v | isId v = WARN( isStableUnfolding (idUnfolding v) || - not (isEmptySpecInfo (idSpecialisation v)), - text "absVarsOf: discarding info on" <+> ppr v ) + zap v | isId v = WARN( dflags, + isStableUnfolding (idUnfolding v) || + not (isEmptySpecInfo (idSpecialisation v)), + text "absVarsOf: discarding info on" <+> ppr v ) setIdInfo v vanillaIdInfo | otherwise = v |