module PrelBase(
module PrelBase,
- module GHC -- Re-export GHC, to avoid lots of people having
- -- to import it explicitly
+ module PrelGHC -- Re-export PrelGHC, to avoid lots of people
+ -- having to import it explicitly
) where
-import {-# SOURCE #-} GHCerr ( error )
-import GHC
+import {-# SOURCE #-} PrelErr ( error )
+import PrelGHC
infixr 9 .
infixl 9 !!
intToDigit i
| i >= 0 && i <= 9 = toEnum (fromEnum '0' + i)
| i >= 10 && i <= 15 = toEnum (fromEnum 'a' + i -10)
- | otherwise = error ("Char.intToDigit: not a digit: " ++ show i) -- ....
+ | otherwise = error "Char.intToDigit: not a digit" ++ show i)
\end{code}