Re: [GHC] #3007: GHC seems to ignore the package name of modules imported with {#- SOURCE #-}

2009-08-14 Thread GHC
#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


Re: [GHC] #3007: GHC seems to ignore the package name of modules imported with {#- SOURCE #-}

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

  * owner:  = igloo

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


Re: [GHC] #3007: GHC seems to ignore the package name of modules imported with {#- SOURCE #-}

2009-08-13 Thread GHC
#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


Re: [GHC] #3007: GHC seems to ignore the package name of modules imported with {#- SOURCE #-}

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

  * difficulty:  = Unknown
  * milestone:  = 6.12.1

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