[GHC] #1434: Missing RULEs for truncate
GHC
cvs-ghc at haskell.org
Wed Oct 20 06:23:20 EDT 2010
#1434: Missing RULEs for truncate
------------------------------------------+---------------------------------
Reporter: ghc@… | Owner: simonmar
Type: task | Status: merge
Priority: high | Milestone: 7.0.1
Component: libraries/base | Version: 6.4.1
Keywords: rules | Testcase:
Blockedby: | Difficulty: Unknown
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Runtime performance bug
------------------------------------------+---------------------------------
Changes (by simonmar):
* status: patch => merge
Comment:
Applied, thanks!
{{{
Wed Oct 20 10:10:14 BST 2010 Daniel Fischer <daniel.is.fischer at web.de>
* FIX #1434
Rewrite rules for RealFrac methods with sized Int and Word targets.
For all types whose range is contained in Int's range, there are now
rewrite rules for properFraction, truncate, floor, ceiling and round
from Double and Float, going through the specialised methods for Int.
Unfortunately, we can't have a rewrite rule for Word.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1434#comment:23>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list