projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Warning fix for unused and redundant imports
[ghc-hetmet.git]
/
compiler
/
iface
/
MkIface.lhs
diff --git
a/compiler/iface/MkIface.lhs
b/compiler/iface/MkIface.lhs
index
e3193bd
..
811af49
100644
(file)
--- a/
compiler/iface/MkIface.lhs
+++ b/
compiler/iface/MkIface.lhs
@@
-195,6
+195,8
@@
import TcRnMonad
import HscTypes
import DynFlags
import HscTypes
import DynFlags
+import VarEnv
+import Var
import Name
import NameEnv
import NameSet
import Name
import NameEnv
import NameSet
@@
-337,7
+339,8
@@
mkIface hsc_env maybe_old_iface
deliberatelyOmitted x = panic ("Deliberately omitted: " ++ x)
ifFamInstTcName = ifaceTyConName . ifFamInstTyCon
deliberatelyOmitted x = panic ("Deliberately omitted: " ++ x)
ifFamInstTcName = ifaceTyConName . ifFamInstTyCon
- flattenVectInfo (VectInfo ccVar) = IfaceVectInfo (nameSetToList ccVar)
+ flattenVectInfo (VectInfo ccVar) =
+ IfaceVectInfo [Var.varName v | (v, _) <- varEnvElts ccVar]
-----------------------------
writeIfaceFile :: DynFlags -> ModLocation -> ModIface -> IO ()
-----------------------------
writeIfaceFile :: DynFlags -> ModLocation -> ModIface -> IO ()