Repsect the package name when checking for self-import
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 16 Jan 2015 14:17:14 +0000 (14:17 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 16 Jan 2015 14:17:14 +0000 (14:17 +0000)
commitfb7c311711c8851d0de1e40231150ad999ae9c2b
treee3000de44d43bcdce46165fce7bd3092f9be32d5
parentc71fb84b8c9ec9c1e279df8c75ceb8a537801aa1
Repsect the package name when checking for self-import

Fixes Trac #9997.

In doing this I tripped across the specialness of "this" in
PackageImports.  The magic constant (fsLit "this") is scattered across
the compiler and ought to be put in one place.  But where?
compiler/rename/RnNames.hs
testsuite/tests/module/T9997.hs [new file with mode: 0644]
testsuite/tests/module/all.T