WinHugs bug: putChar (chr 255)
Bulat Ziganshin <[email protected]> Mon, 6 Feb 2006 12:18:13 +0300
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <[email protected]> |
Hello ,
seems that WinHugs hates to do binary I/O :)))
Main> putChar (chr 255)
я
Program error: <stdout>: Prelude.putChar: does not exist (file does not exist)
the same problem in this program:
import System.IO
import Data.Char
main = do h <- openBinaryFile "test" WriteMode
hPutChar h (chr 255)
hPutChar h 'a' -- never executed
--
Best regards,
Bulat mailto:[email protected]