[Haskell-cafe] On hGetContents semi-closenesscloseness

Andrew Coppin andrewcoppin at btinternet.com
Tue Feb 15 20:30:09 CET 2011

> In a way, it's analogous to the situation with garbage collection and
> closing file handles in finalizers; but the details are different and
> the unpredictable file closing comes from lazy evaluation rather than
> garbage collection.

Except that lazy evaluation can affect *when* the data becomes garbage! ;-)

More information about the Haskell-Cafe mailing list