don't qualify module name for importedSrcLoc
authorSimon Marlow <simonmar@microsoft.com>
Fri, 11 Aug 2006 10:13:27 +0000 (10:13 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 11 Aug 2006 10:13:27 +0000 (10:13 +0000)
compiler/iface/LoadIface.lhs

index 8bcf987..51b540c 100644 (file)
@@ -315,7 +315,8 @@ loadDecl ignore_prags mod (_version, decl)
        -- imported name, to fix the module correctly in the cache
     mk_new_bndr mod mb_parent occ 
        = newGlobalBinder mod occ mb_parent 
-                         (importedSrcLoc (showSDoc (pprModule mod)))
+                         (importedSrcLoc (showSDoc (ppr (moduleName mod))))
+                       -- ToDo: qualify with the package name if necessary
 
     doc = ptext SLIT("Declaration for") <+> ppr (ifName decl)