X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fiface%2FLoadIface.lhs;h=e6c8f636dc5046d7e7cc927f8056215132b2a83a;hb=8e325220e14e05e83fef46a195e7f05fe2d49433;hp=1c8b410123d607458594776456bf874016b9a21c;hpb=098f818b622e5095fbd3f6318a463fcb2ce14fc6;p=ghc-hetmet.git diff --git a/compiler/iface/LoadIface.lhs b/compiler/iface/LoadIface.lhs index 1c8b410..e6c8f63 100644 --- a/compiler/iface/LoadIface.lhs +++ b/compiler/iface/LoadIface.lhs @@ -38,7 +38,6 @@ import InstEnv import FamInstEnv import Name import NameEnv -import NameSet import MkId import Module import OccName @@ -52,7 +51,6 @@ import Outputable import BinIface import Panic -import Control.Monad (when) import Data.List import Data.Maybe import Data.IORef @@ -369,8 +367,7 @@ loadDecl ignore_prags mod (_version, decl) -- * location -- imported name, to fix the module correctly in the cache mk_new_bndr mod occ - = newGlobalBinder mod occ - (importedSrcLoc (showSDoc (ppr (moduleName mod)))) + = newGlobalBinder mod occ (importedSrcSpan (moduleNameFS (moduleName mod))) -- ToDo: qualify with the package name if necessary doc = ptext SLIT("Declaration for") <+> ppr (ifName decl)