On Tue, Dec 9, 2008 at 9:15 PM, Henning Thielemann
<[EMAIL PROTECTED]> wrote:
>
>
> I think the problem is that readFile style routines are not modular
> enough. We need open/getContent/close style routines and sadly,
> composition of them is error-prone. You can easily close a file and try to
> read data from it afterwards. Maybe continuation style functions (like
> withCString) are better, but it is still possible to access closed files.
> It would be very nice if these problems could be solved, since the interim
> lazy processing is very elegant, and also useful for feedback.

This is one of the things I really like about Iteratees.  They are
composable.  I originally tried to use a withFile function, but
composing those, so that one process will read from multiple files, is
not really a modular process.
_______________________________________________
haskell-art mailing list
haskell-art@lurk.org
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to