[GHC] #7295: bad code for Double literals
GHC
cvs-ghc at haskell.org
Mon Oct 22 14:01:43 CEST 2012
#7295: bad code for Double literals
---------------------------------+------------------------------------------
Reporter: jwlato | Owner: igloo
Type: bug | Status: patch
Priority: high | Milestone: 7.8.1
Component: Compiler | Version: 7.6.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by jwlato@…):
commit 771d376bb6d2ab524741c6d0732718ac2613d2a1
{{{
Author: John Lato <jwlato at gmail.com>
Date: Mon Oct 8 12:54:55 2012 +0800
add GHC.Float.rationalToFloat, rationalToDouble (fixes #7295)
Adds better support for constant folding of Float/Double literals.
- add rationalToFloat, rationalToDouble with associated Name/Id's in
PrelNames.
- add a matching rule in PrelRules for rationalTo* functions.
compiler/prelude/PrelNames.lhs | 13 +++++++++++++
compiler/prelude/PrelRules.lhs | 29 +++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7295#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list