Remove some redundant fromInteger's
authorIan Lynagh <igloo@earth.li>
Tue, 24 Mar 2009 14:53:25 +0000 (14:53 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 24 Mar 2009 14:53:25 +0000 (14:53 +0000)
GHC/Num.lhs

index da4ab04..307909d 100644 (file)
@@ -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]