[project @ 2003-12-19 10:34:51 by simonpj]
authorsimonpj <unknown>
Fri, 19 Dec 2003 10:34:52 +0000 (10:34 +0000)
committersimonpj <unknown>
Fri, 19 Dec 2003 10:34:52 +0000 (10:34 +0000)
commit3674a5cc2879ef276785c1b19af7c6f6bdee1488
tree82e24f6ee657f57bf6819685e7b70b7b879d274d
parent04f38ebf110bdf6808198b429e491501af869d11
[project @ 2003-12-19 10:34:51 by simonpj]
---------------------------------------
  Precise locations for duplicate imports
  ---------------------------------------

As a displacment activity I added reporting for duplicate imports
And more precise locations for the imports themselves.  For example:

  module T where

  import Maybe (isJust,isJust)
  import Maybe (isJust)

gives

Foo.hs:
    Warning: `isJust' is imported more than once:
       imported from Maybe at Foo.hs:4:16-21
       imported from Maybe at Foo.hs:3:23-28
       imported from Maybe at Foo.hs:3:16-21
ghc/compiler/basicTypes/RdrName.lhs
ghc/compiler/rename/RnNames.lhs