[project @ 2001-08-08 08:44:47 by simonmar]
[ghc-hetmet.git] / ghc / compiler / DEPEND-NOTES
index 34931bd..fb966c6 100644 (file)
@@ -5,40 +5,49 @@ The Name/Var/Type group is a bit complicated. Here's the deal
 Things in brackets are what the module *uses*.
 A 'loop' indicates a use from a module compiled later
 
-       Name, PrimRep, FieldLabel (loop Type.Type)
+       Name, PrimRep 
 then
-       Var (loop Const.Con, loop IdInfo.IdInfo, 
-            loop Type.GenType, loop Type.Kind)
+       PrelNames
+then
+       Var (Name, loop IdInfo.IdInfo, 
+            loop Type.Type, loop Type.Kind)
 then
        VarEnv, VarSet, ThinAir
 then
-       Class (loop TyCon.TyCon, loop Type.Type, loop InstEnv.InstEnv)
+       Class (loop TyCon.TyCon, loop Type.Type)
 then
-       TyCon (loop Type.Type, loop Type.Kind, loop DataCon.DataCon)
+       TyCon (loop Type.Type, loop Type.Kind, loop DataCon.DataCon, loop Generics.GenInfo)
 then
        Type (loop DataCon.DataCon, loop Subst.substTy)
 then
-       DataCon, TysPrim, Unify, PprType
+       FieldLabel( Type), TysPrim (Type), PprEnv (loop DataCon.DataCon, Type)
+then
+       Unify, PprType (PprEnv)
+then
+       Literal (TysPrim, PprType), DataCon (PprType)
 then
-       InstEnv (Unify)
+       TysWiredIn (DataCon.mkDataCon, loop MkId.mkDataConId, loop Generics.mkGenInfo)
 then
-       IdInfo (loop CoreRules.CoreRules) 
-       TysWiredIn (DataCon.mkDataCon, loop MkId.mkDataConId)
+       PrimOp (PprType, TysWiredIn)
 then
-       PrimOp (PprType, TysWiredIn, IdInfo.StrictnessInfo)
+       CoreSyn
 then
-       Const (PrimOp.PrimOp, TysWiredIn.stringTy)
+       IdInfo (CoreSyn.Unfolding, CoreSyn.CoreRules)
 then
-       Id (Const.Con(..)), CoreSyn
+       Id (lots from IdInfo)
 then
-       CoreUtils (loop PprCore.pprCoreExpr), CoreFVs
+       CoreFVs, PprCore
+then
+       CoreUtils (PprCore.pprCoreExpr, CoreFVs.exprFreeVars,
+                  CoreSyn.isEvaldUnfolding CoreSyn.maybeUnfoldingTemplate)
 then   
-       OccurAnal (ThinAir.noRepStrs -- an awkward dependency)
+       OccurAnal (CoreUtils.exprIsTrivial)
 then
-       CoreUnfold (loop OccurAnal.globalOccurAnalyse)
+       CoreUnfold (OccurAnal.occurAnalyseGlobalExpr)
 then
-       Rules (Unfolding), Subst (Unfolding, CoreFVs), CoreTidy (noUnfolding)
+       Rules (Unfolding), Subst (Unfolding, CoreFVs), CoreTidy (noUnfolding), Generics (mkTopUnfolding)
 then
        MkId (CoreUnfold.mkUnfolding, Subst)
-
+then
+       PrelInfo (MkId)