Hannah Schroeter [EMAIL PROTECTED] writes:
Hello!
[older mail]
On Sun, Feb 21, 1999 at 11:47:40PM -0800, Sigbjorn Finne
(Intl Vendor) wrote:
Sven Panne [EMAIL PROTECTED] writes:
...
* hClose on a semi-closed handle fails (4.02 has this
bug, too):
[...]
But
Hello!
[older mail]
On Sun, Feb 21, 1999 at 11:47:40PM -0800, Sigbjorn Finne (Intl Vendor) wrote:
Sven Panne [EMAIL PROTECTED] writes:
...
* hClose on a semi-closed handle fails (4.02 has this bug, too):
[...]
But that's not the case here. By the time you get around to doing
the
OK, the Word module has been fixed in the repository, but not the Int
module.
Ok, done now.
Hmmm, looking at the sources, I don't understand the
reason why
the IntXY methods for fromInteger use a case while the corresponding
methods in Word don't:
Int.lhs:
[...]
fromInteger (J#
Sven Panne [EMAIL PROTECTED] writes:
...
* 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:
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: