FW: lazy file reading in H98
Marcin 'Qrczak' Kowalczyk
qrczak@knm.org.pl
7 Apr 2001 21:09:26 GMT
Sat, 07 Apr 2001 20:35:52 +0100, Olaf Chitil <olaf@cs.york.ac.uk> pisze:
> do
> handle <- openFile "configuration" ReadMode
> contents <- hGetContents
> ...
> hClose handle
> writeFile "configuration" newContents
It will be wrong if the contents is not fully evaluated at the point
of hClose.
Perhaps hClose should arrange to performGC and suck the rest of the
file if it's still needed.
--
__("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK