Re: WinHugs bug: putChar (chr 255)
Malcolm Wallace <[email protected]> Mon, 6 Feb 2006 11:24:54 +0000
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Bulat Ziganshin <[email protected]> writes: > import System.IO > import Data.Char > main = do h <- openBinaryFile "test" WriteMode > hPutChar h (chr 255) > hPutChar h 'a' -- never executed In the underlying C API, (char)255 == (char)-1 == EOF. Regards, Malcolm