Re: [GHC] #7454: Missing warning about redundant import of classes/types whose members are used

2013-01-08 Thread GHC
#7454: Missing warning about redundant import of classes/types whose members are
used
-+--
Reporter:  EyalLotem |  Owner:  
Type:  bug   | Status:  new 
Priority:  normal|  Component:  Compiler
 Version:  7.6.1 |   Keywords:  
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown  |  Blockedby:  
Blocking:|Related:  
-+--

Comment(by simonpj@…):

 commit a8ea80f19974abc4f1b18734013873292116fff5
 {{{
 Author: Simon Peyton Jones simo...@microsoft.com
 Date:   Mon Jan 7 17:50:57 2013 +

 Rearrange the computation of unused imports; fixes Trac #7454

  compiler/rename/RnNames.lhs |   44
 +-
  1 files changed, 30 insertions(+), 14 deletions(-)
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7454#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] #7454: Missing warning about redundant import of classes/types whose members are used

2013-01-08 Thread GHC
#7454: Missing warning about redundant import of classes/types whose members are
used
-+--
Reporter:  EyalLotem |  Owner:  
Type:  bug   | Status:  new 
Priority:  normal|  Component:  Compiler
 Version:  7.6.1 |   Keywords:  
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown  |  Blockedby:  
Blocking:|Related:  
-+--

Comment(by simonpj@…):

 commit afe9a3b0f1a28c364e8574c7d26962f89dd9806e
 {{{
 Author: Simon Peyton Jones simo...@microsoft.com
 Date:   Mon Jan 7 17:52:08 2013 +

 Remove two unused imports, detected by the fix to Trac #7454

  compiler/basicTypes/Id.lhs  |2 +-
  compiler/typecheck/Inst.lhs |2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
 }}}

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


Re: [GHC] #7454: Missing warning about redundant import of classes/types whose members are used

2013-01-08 Thread GHC
#7454: Missing warning about redundant import of classes/types whose members are
used
---+
  Reporter:  EyalLotem |  Owner:  
  Type:  bug   | Status:  closed  
  Priority:  normal|  Milestone:  
 Component:  Compiler  |Version:  7.6.1   
Resolution:  fixed |   Keywords:  
Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  | Difficulty:  Unknown 
  Testcase:  rename/should_fail/T7454  |  Blockedby:  
  Blocking:|Related:  
---+
Changes (by simonpj):

  * status:  new = closed
  * difficulty:  = Unknown
  * resolution:  = fixed
  * testcase:  = rename/should_fail/T7454


Comment:

 Thanks!  Fixed by above patch.

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


[GHC] #7454: Missing warning about redundant import of classes/types whose members are used

2012-11-27 Thread GHC
#7454: Missing warning about redundant import of classes/types whose members are
used
-+--
Reporter:  EyalLotem |  Owner:  
Type:  bug   | Status:  new 
Priority:  normal|  Component:  Compiler
 Version:  7.6.1 |   Keywords:  
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown  |  Blockedby:  
Blocking:|Related:  
-+--
 If one module exports a class C(..) with a method m,
 and another module imports it via: import Module(C, m)
 And then proceeds to use only m, one would expect to get a warning about
 the redundant import of C, but that does not occur.

 Similarly, the same thing happens if one imports a data-type D, and a
 record field f, and uses only f. No redundant import warning is issued
 on D.

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