#9997: "A module cannot import itself"-regression -------------------------------------+------------------------------------- Reporter: hvr | Owner: simonpj Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: regression Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: #9032 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"fb7c311711c8851d0de1e40231150ad999ae9c2b/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="fb7c311711c8851d0de1e40231150ad999ae9c2b" 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? }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9997#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler