#3007: GHC seems to ignore the package name of modules imported with {#- SOURCE
#-}
-------------------------------+--------------------------------------------
    Reporter:  jeltsch         |        Owner:  igloo  
        Type:  bug             |       Status:  closed 
    Priority:  normal          |    Milestone:  6.12.1 
   Component:  Compiler        |      Version:  6.10.1 
    Severity:  normal          |   Resolution:  fixed  
    Keywords:                  |   Difficulty:  Unknown
    Testcase:                  |           Os:  Linux  
Architecture:  x86_64 (amd64)  |  
-------------------------------+--------------------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fixed:
 {{{
 Thu Aug 13 17:24:35 BST 2009  Ian Lynagh <ig...@earth.li>
   * Only look up whether a module's SOURCE-imported if it's in the current
 package
   Suppose we import anotherPackage:M, which exports things from
   anotherPackage:Internal. Then GHC will want to read
   anotherPackage:Internal.hi.

   However, if we have also SOURCE-imported thisPackage:Internal then
   we don't want GHC to try to read anotherPackage:Internal.hi-boot
   instead.

   The mapping that tells us whether a module is SOURCE-imported uses just
   the module name for the key, so we have to check the package ID before
   looking it up.

   Fixes #3007.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3007#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to