[Haskell-cafe] Confusing change causing space leak
dbueno at gmail.com
Fri Apr 24 12:51:35 EDT 2009
I discussed this with a few people in #haskell-in-depth, and we
thought I should send this to the list.
The following paste shows the only changes required to remove a space
Summary: if I reduce a tuple-from-IO to whnf in the "allocate"
function passed to "bracket", no leak. For example, this also doesn't
That paste page also contains the code for "externalSort". The
"externalSort" function used in the example corresponds to the "sort"
function provided by the Algorithms.ExternalSort module.
Can anyone explain why the leak happens at all, or why it goes away?
More information about the Haskell-Cafe