The latest hugs release (March 2005) had a few issues, most notably with binary file I/O. A patched version is available at http://cvs.haskell.org/Hugs/downloads/Mar2005/. Please update the ebuild. Reproducible: Always Steps to Reproduce: 1. The following Haskell program will make hugs write '?' characters instead of the upper half of the ASCII table. test = do let myAsciiTable = ['\x0'..'\xff'] handle <- openBinaryFile "test" WriteMode hPutStr handle myAsciiTable hClose handle
Thanks for pointing this out Hans. I've added hugs98-2005.3-r1 with this patch. Please re-open this bug if anything doesn't work. Hmm, we should really try to get this marked stable soon.