
18 Oct
2006
18 Oct
'06
12:03 p.m.
Hi Jun, On Sun, Oct 15, 2006 at 01:56:07AM +0900, mukai@jmuk.org wrote:
hunk ./Data/Char.hs 54 +#ifdef __GLASGOW_HASKELL__ + -- * Converting UTF-8 from/to encoding + , charToUTF8Chars -- :: Char -> [Char] + , toUTF8String -- :: String -> String + , fromUTF8String -- :: String -> String +#endif
Why is all this GHC-only?
hunk ./System/IO.hs 186 +import GHC.Enum +import Data.Char (chr, charToUTF8Chars) hunk ./System/IO.hs 344 + [...] +hPutCharUTF8 :: Handle -> Char -> IO () +hPutCharUTF8 hndl c = hPutStr hndl $ map (chr.fromEnum) $ charToUTF8Chars c + [...] +putStrLnUTF8 = hPutStrLnUTF8 stdout +
If the earlier stuff really does need to be GHC-only, shouldn't this be too? Thanks Ian