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

Comment(by draconx):

 I agree that the "funny rationals" are a bit too strange a notion,
 especially when it comes to defining how arithmetic operations should
 behave.

 After thinking about it, I'm fond of the toDouble/fromDouble approach as
 it seems consistent with the themes elsewhere in the library, except that
 it makes it harder to later add floating types that are wider than Double.

 I can post this idea to the haskell-prime mailing list for discussion, if
 that's the right one.

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