From 487f186dfdf4cab27dd6cf03f7e178f3a4bd491d Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 17 May 2005 08:48:28 +0000 Subject: [PATCH] [project @ 2005-05-17 08:48:28 by simonmar] expand comment --- ghc/compiler/main/HscTypes.lhs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ghc/compiler/main/HscTypes.lhs b/ghc/compiler/main/HscTypes.lhs index 2a6e899..c378e1c 100644 --- a/ghc/compiler/main/HscTypes.lhs +++ b/ghc/compiler/main/HscTypes.lhs @@ -337,9 +337,16 @@ data ModIface mi_decls :: [(Version,IfaceDecl)], -- Sorted mi_globals :: !(Maybe GlobalRdrEnv), - -- Its top level environment or Nothing if we read this - -- interface from an interface file. (We need the source - -- file to figure out the top-level environment.) + -- Binds all the things defined at the top level in + -- the *original source* code for this module. which + -- is NOT the same as mi_exports, nor mi_decls (which + -- may contains declarations for things not actually + -- defined by the user). Used for GHCi and for inspecting + -- the contents of modules via the GHC API only. + -- + -- (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). -- Instance declarations and rules mi_insts :: [IfaceInst], -- Sorted -- 1.7.10.4