Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : local-gc

http://hackage.haskell.org/trac/ghc/changeset/927df6486bc0dcb598b82702ca40c8fad0d9b25f

>---------------------------------------------------------------

commit 927df6486bc0dcb598b82702ca40c8fad0d9b25f
Author: Simon Marlow <[email protected]>
Date:   Sat Jun 4 11:11:10 2011 +0100

    add comment

>---------------------------------------------------------------

 compiler/main/GHC.hs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs
index 44ec3ff..0ecc09b 100644
--- a/compiler/main/GHC.hs
+++ b/compiler/main/GHC.hs
@@ -933,6 +933,10 @@ getPackageModuleInfo :: HscEnv -> Module -> IO (Maybe 
ModuleInfo)
 #ifdef GHCI
 getPackageModuleInfo hsc_env mdl = do
   mb_avails <- hscGetModuleExports hsc_env mdl
+     -- This is the only use of hscGetModuleExports.  Perhaps we could use
+     -- hscRnImportDecls instead, but that does a lot more than we need
+     -- (building instance environment, checking family instance consistency
+     -- etc.).
   case mb_avails of
     Nothing -> return Nothing
     Just avails -> do



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to