Re: [GHC] #3261: Some warnings disappear with -Werror

2009-05-29 Thread GHC
#3261: Some warnings disappear with -Werror
-+--
Reporter:  igloo |Owner:  simonpj 
Type:  bug   |   Status:  new 
Priority:  normal|Milestone:  6.12.1  
   Component:  Compiler  |  Version:  6.11
Severity:  normal|   Resolution:  
Keywords:|   Difficulty:  Unknown 
Testcase:  tcfail204 |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
-+--
Comment (by simonpj):

 Fixed by
 {{{
 Thu May 28 17:49:00 BST 2009  simo...@microsoft.com
   * Fix Trac #3261: make default types play nice with -Werror

   The trial-and-error for type defaults was not playing nicely with
   -Werror. The fix is simple.


 M ./compiler/typecheck/TcSimplify.lhs -6 +7
 }}}
 That now shows up a warning as an error, so you need this too:
 {{{
 Thu May 28 17:45:25 BST 2009  simo...@microsoft.com
   * Remove type-ambiguous (fromIntegral 0)::Int, replacing it with just 0

   This unnecessary ambiguity has been there for ages, and is now rejected
   by -Werror, after fixing #3261

 M ./compiler/ghci/ByteCodeAsm.lhs -1 +1
 }}}
 And there's a similar case in `Float.lhs`, still to fix.

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3261#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] #3261: Some warnings disappear with -Werror

2009-05-29 Thread GHC
#3261: Some warnings disappear with -Werror
-+--
Reporter:  igloo |Owner:  simonpj 
Type:  bug   |   Status:  closed  
Priority:  normal|Milestone:  6.12.1  
   Component:  Compiler  |  Version:  6.11
Severity:  normal|   Resolution:  fixed   
Keywords:|   Difficulty:  Unknown 
Testcase:  tcfail204 |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
-+--
Changes (by simonpj):

  * status:  new = closed
  * resolution:  = fixed

Comment:

 OK library patches pushed, so I'm closing this.

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3261#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] #3261: Some warnings disappear with -Werror

2009-05-28 Thread GHC
#3261: Some warnings disappear with -Werror
-+--
Reporter:  igloo |Owner:  simonpj 
Type:  bug   |   Status:  new 
Priority:  normal|Milestone:  6.12.1  
   Component:  Compiler  |  Version:  6.11
Severity:  normal|   Resolution:  
Keywords:|   Difficulty:  Unknown 
Testcase:  tcfail204 |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
-+--
Changes (by simonpj):

  * owner:  = simonpj

Comment:

 Oh OK, I see what is going on.  Will fix.  Simon

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


[GHC] #3261: Some warnings disappear with -Werror

2009-05-27 Thread GHC
#3261: Some warnings disappear with -Werror
---+
  Reporter:  igloo |  Owner:  
  Type:  bug   | Status:  new 
  Priority:  normal|  Milestone:  6.12.1  
 Component:  Compiler  |Version:  6.11
  Severity:  normal|   Keywords:  
Difficulty:  Unknown   |   Testcase:  tcfail204   
Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
---+
 With `q.hs`:
 {{{
 module Foo where

 foo :: Int
 foo = ceiling 6.3
 }}}
 I get:
 {{{
 $ ghc -fforce-recomp -c q.hs -Wall

 q.hs:5:6:
 Warning: Defaulting the following constraint(s) to type `Double'
  `RealFrac t' arising from a use of `ceiling' at q.hs:5:6-16
 In the expression: ceiling 6.3
 In the definition of `foo': foo = ceiling 6.3
 $ ghc -fforce-recomp -c q.hs -Wall -Werror
 $
 }}}

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