Make sure ATs are included into the temporary env for tc knot tying
[ghc-hetmet.git] / compiler / main / HscTypes.lhs
index 29e440e..2c8780c 100644 (file)
@@ -82,7 +82,7 @@ import CoreSyn                ( CoreBind )
 import Id              ( Id )
 import Type            ( TyThing(..) )
 
-import Class           ( Class, classSelIds, classTyCon, classATs )
+import Class           ( Class, classSelIds, classTyCon )
 import TyCon           ( TyCon, tyConSelIds, tyConDataCons, isNewTyCon, newTyConCo )
 import DataCon         ( dataConImplicitIds )
 import PrelNames       ( gHC_PRIM )
@@ -633,8 +633,7 @@ implicitTyThings (ATyCon tc) = implicitNewCoTyCon tc ++
        -- For classes, add the class TyCon too (and its extras)
        -- and the class selector Ids
 implicitTyThings (AClass cl) = map AnId (classSelIds cl) ++
-                              extras_plus (ATyCon (classTyCon cl)) ++
-                              map ATyCon (classATs cl)
+                              extras_plus (ATyCon (classTyCon cl))
                         
 
        -- For data cons add the worker and wrapper (if any)