Commit eb2a3ce7 authored by simonmar's avatar simonmar
Browse files

[project @ 2002-03-28 17:52:08 by simonmar]

In lookupTopBndrRn, if we're in an interface file, then create the
binder in the cache with the correct Module (inc. package name) rather
than making a vanilla module as we do currently.

This helps to get the package names right in names from interfaces
that we've read via checkOldIface (ie. "skipped" modules), and fixes a
bug to do with unnecessary version bumping and recompilation.

(Simon P.J. will add a better comment later)

parent 6433e4f6
......@@ -216,7 +216,7 @@ lookupTopBndrRn rdr_name
| otherwise
= getModeRn `thenRn` \ mode ->
if isInterfaceMode mode
then lookupIfaceName rdr_name
then lookupSysBinder rdr_name
getModuleRn `thenRn` \ mod ->
getGlobalNameEnv `thenRn` \ global_env ->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment