#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:  driver/T3007    |           Os:  Linux  
Architecture:  x86_64 (amd64)  |  
-------------------------------+--------------------------------------------
Changes (by simonpj):

  * testcase:  => driver/T3007

Comment:

 Looking at the patch, I could see how to improve it a bit, so that if you
 `{#- SOURCE #-}` import a module from a different package, you get
 civilised error message:
 {{{
 Foo.hs:3:0:
     You cannot {-# SOURCE #-} import a module from another package
       but `Data.List' is from package `base'
 }}}
 The patch is this:
 {{{
 Fri Aug 14 12:02:14 BST 2009  simo...@microsoft.com
   * Improve fix to Trac #3007

   This patch tides up Ian's fix a little. In particular, if if you
   {-# SOURCE #-} import a module from a different package, you now
   get a much more civlised error message.

     M ./compiler/iface/LoadIface.lhs -14 +36
 }}}
 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3007#comment:4>
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