[Hugs-users] WinHugs bug: putChar (chr 255)

Bulat Ziganshin bulatz at HotPOP.com
Mon Feb 6 04:18:13 EST 2006


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:bulatz at HotPOP.com





More information about the Hugs-Users mailing list