[GHC] #3676: realToFrac doesn't sanely convert between floating types

GHC trac at galois.com
Wed Feb 10 06:51:51 EST 2010


#3676: realToFrac doesn't sanely convert between floating types
----------------------------------+-----------------------------------------
    Reporter:  draconx            |        Owner:              
        Type:  bug                |       Status:  new         
    Priority:  normal             |    Milestone:  6.12.2      
   Component:  libraries (other)  |      Version:  6.12.1      
    Keywords:                     |   Difficulty:              
          Os:  Unknown/Multiple   |     Testcase:              
Architecture:  x86_64 (amd64)     |      Failure:  None/Unknown
----------------------------------+-----------------------------------------

Comment(by simonpj):

 Yes, that's because the library `GHC.Float` contains the (clearly
 incorrect) RULE
 {{{
 "realToFrac/Double->Double" realToFrac   = id :: Double -> Double
 }}}
 This ticket really really needs someone who knows and cares about numbers
 to figure out what the Right Thing is.  It's a library issue involving
 only Haskell source code.  Would someone like to help?

 Thanks

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3676#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list