The current ghc-4.03 from the repository contains two bugs:
* In the modules Int and Word: The fromInteger methods handle
the J# cases only, but not the S# cases. Example:
import Word
main = print ((fromInteger 42)::Word32)
yields
Fail: Word.lhs:573: Non-exhaustive patterns in function fromInteger
* hClose on a semi-closed handle fails (4.02 has this bug, too):
import IO
main = do
h <- openFile "/etc/passwd" ReadMode
c <- hGetContents h
putStr c
hClose h
Transcript:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/bash
[...]
Fail: illegal operation
Action: hClose
Handle: {closed}
Reason: handle is closed
According to the library report, closing a semi-closed handle
should be allowed.
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne