[GHC] #9764: Home package modules silently override available modules from package database

GHC ghc-devs at haskell.org
Tue Nov 4 09:46:15 UTC 2014


#9764: Home package modules silently override available modules from package
database
-------------------------------------+-------------------------------------
              Reporter:  ezyang      |            Owner:  ezyang
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.9
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:  GHC         |  Related Tickets:
  accepts invalid program            |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Wait. If you say `-hide-all-packages` then there are no packages in scope,
 so how can there be any conflict?

 Perhaps you mean to propose this:
  * If you have an explicit `-package p` flag
  * And a home-package module whose name conflicts with one exposed by `p`
  * Then at least warn of the conflict

 Was that what you meant?  That would not imply any discrepancies, would
 it?

 Simon

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9764#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list