FIX #1434
authorDaniel Fischer <daniel.is.fischer@web.de>
Wed, 20 Oct 2010 09:10:14 +0000 (09:10 +0000)
committerDaniel Fischer <daniel.is.fischer@web.de>
Wed, 20 Oct 2010 09:10:14 +0000 (09:10 +0000)
commit397c8d868b884a37446acfa788c12d48a077ef94
tree8f989ceb2ffbe1f44592ccc48cfa1b2bf3cd7e85
parent4e7e4530c1157ff21d0bb5c5b69249a4e7ee0f29
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.
GHC/Int.hs
GHC/Word.hs