#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
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to