projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0837fba
)
Remove some redundant fromInteger's
author
Ian Lynagh
<igloo@earth.li>
Tue, 24 Mar 2009 14:53:25 +0000
(14:53 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 24 Mar 2009 14:53:25 +0000
(14:53 +0000)
GHC/Num.lhs
patch
|
blob
|
history
diff --git
a/GHC/Num.lhs
b/GHC/Num.lhs
index
da4ab04
..
307909d
100644
(file)
--- a/
GHC/Num.lhs
+++ b/
GHC/Num.lhs
@@
-180,8
+180,8
@@
integerToString n0 cs0
jsplith p (n:ns) =
case n `quotRemInteger` p of
(# q, r #) ->
- if q > 0 then fromInteger q : fromInteger r : jsplitb p ns
- else fromInteger r : jsplitb p ns
+ if q > 0 then q : r : jsplitb p ns
+ else r : jsplitb p ns
jsplith _ [] = error "jsplith: []"
jsplitb :: Integer -> [Integer] -> [Integer]