From: simonmar Date: Tue, 17 May 2005 09:21:53 +0000 (+0000) Subject: [project @ 2005-05-17 09:21:53 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~537 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=208a3cfbc321879e8a521cf89555d846ff7ab928;p=ghc-hetmet.git [project @ 2005-05-17 09:21:53 by simonmar] More commentary --- diff --git a/ghc/compiler/main/HscTypes.lhs b/ghc/compiler/main/HscTypes.lhs index c378e1c..ce54d8d 100644 --- a/ghc/compiler/main/HscTypes.lhs +++ b/ghc/compiler/main/HscTypes.lhs @@ -225,6 +225,10 @@ data HomeModInfo -- the old linkable because it was out of date. -- after a complete compilation (GHC.load), all hm_linkable -- fields in the HPT will be Just. + -- + -- When re-linking a module (hscNoRecomp), we construct + -- the HomModInfo by building a new ModDetails from the + -- old ModIface (only). \end{code} Simple lookups in the symbol table. @@ -347,6 +351,9 @@ data ModIface -- (We need the source file to figure out the -- top-level environment, if we didn't compile this module -- from source then this field contains Nothing). + -- + -- Strictly speaking this field should live in the + -- HomeModInfo, but that leads to more plumbing. -- Instance declarations and rules mi_insts :: [IfaceInst], -- Sorted