Re: [Haskell-cafe] ANNOUNCE: enumerator 0.4.8

29 Mar
2011
29 Mar
'11
6:35 a.m.
On Mar 29, 2011 10:42 AM,
I'm keen to hear of the example that seem to require Iteratee's allocating additional resources. I'd really like to see if any of such cases can be cast it terms of regions, implemented via iterated Iteratee transformers.
Hello Oleg, The first example which comes to mind - because I recently implemented this - is HTTP uploads: the input stream can hold N files (the value of N not known ahead of time), and each upload can go to a separate temporary file. If the request stream fails early (e.g. client browser closes connection), any already-created temp files and any open file handles must be cleaned up.
5169
Age (days ago)
5169
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gregory Collins