[project @ 2001-04-27 11:23:48 by simonmar]
authorsimonmar <unknown>
Fri, 27 Apr 2001 11:23:48 +0000 (11:23 +0000)
committersimonmar <unknown>
Fri, 27 Apr 2001 11:23:48 +0000 (11:23 +0000)
er.. wibble

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