#3676: realToFrac doesn't sanely convert between floating types
----------------------------------+-----------------------------------------
Reporter: draconx | Owner: simonmar
Type: bug | Status: assigned
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 maeder):
I suppose arithmetic on these non-normalised rationals does also not
behave like on doubles (IEEE).
I would expect toRational to fail on NaN and Infinity and to convert -0 to
0.
But rather than introducing a multi-parameter type class I would just add
non-overloaded plain conversion functions between Float, Double, CDouble,
etc.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3676#comment:12>
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