Well, now I know why the "iteratee" package never defined something
like "iterFile" -- it's not really possible. The only way to open
handles within an iteratee prevents exception-safe release.
enumerator-0.3 will remove the iterFile functions. iterHandle will
remain, to be used as in your second
It's certainly a bug in iterFile -- I think it'll have to be modified
to close the file on EOF, not after returning a continuation.
Semi-working in the compiled version is probably just a quirk of the
garbage collector and/or OS.
___
Haskell-Cafe mailing
I forgot to mention that the file "bar" is created but empty. So it seems
the Iteratee opens it and then closes it prematurely.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe