[project @ 2005-04-26 15:08:16 by simonmar]
authorsimonmar <unknown>
Tue, 26 Apr 2005 15:08:16 +0000 (15:08 +0000)
committersimonmar <unknown>
Tue, 26 Apr 2005 15:08:16 +0000 (15:08 +0000)
commitf6aa7ddce829897f53dd72460248d297506f6ae8
treec59a97049386f634166140c5593e17b2c4948b2e
parentff75ee77a9907b43529aab5a82dc971a35a22667
[project @ 2005-04-26 15:08:16 by simonmar]
When chasing explicit imports, we now look for the module in both the
home package and external packages, and complain if it is found in
both:

Chasing modules from: Overlap
Cannot import `List':
  it was found in both overlap/List.hs and package haskell98-1.0.
  Possible fix: -ignore-package haskell98-1.0
  (imported from overlap/Overlap.hs)

Previously the home module would have been ignored in favour of the
package module.  It means we're doing a bit more searching, but the
behaviour is less obscure.
ghc/compiler/main/Finder.lhs