[project @ 2001-06-14 12:50:05 by simonpj]
[ghc-hetmet.git] / ghc / compiler / utils / Outputable.lhs
index 2dd48ce..b805da4 100644 (file)
@@ -371,7 +371,7 @@ showCharLit c rest
 -- of Char and String.
 
 pprHsChar :: Int -> SDoc
-pprHsChar c | c > 0x10ffff = char '\\' <> show (fromIntegral c :: Word32)
+pprHsChar c | c > 0x10ffff = char '\\' <> text (show (fromIntegral c :: Word32))
             | otherwise    = text (show (chr c))
 
 pprHsString :: FastString -> SDoc