% ------------------------------------------------------------------------------
-% $Id: Show.lhs,v 1.1 2001/06/28 14:15:03 simonmar Exp $
+% $Id: Show.lhs,v 1.4 2001/12/21 15:07:25 simonmar Exp $
%
% (c) The University of Glasgow, 1992-2000
%
import {-# SOURCE #-} GHC.Err ( error )
import GHC.Base
-import GHC.Tup
-import GHC.Maybe
+import Data.Maybe
+import Data.Either
import GHC.List ( (!!), break, dropWhile
#ifdef USE_REPORT_PRELUDE
, concatMap, foldr1
itos' :: Int# -> String -> String
itos' n# cs
| n# <# 10# = C# (chr# (ord# '0'# +# n#)) : cs
- | otherwise = itos' (n# `quotInt#` 10#)
- (C# (chr# (ord# '0'# +# (n# `remInt#` 10#))) : cs)
+ | otherwise = case chr# (ord# '0'# +# (n# `remInt#` 10#)) of { c# ->
+ itos' (n# `quotInt#` 10#) (C# c# : cs) }
\end{code}
%*********************************************************