From 208a3cfbc321879e8a521cf89555d846ff7ab928 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 17 May 2005 09:21:53 +0000 Subject: [PATCH] [project @ 2005-05-17 09:21:53 by simonmar] More commentary --- ghc/compiler/main/HscTypes.lhs | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 1.7.10.4