On Tue, Mar 8, 2011 at 1:07 AM, tsuraan <[email protected]> wrote: >> [ thorough explanation of how Snap works snipped ] > > Thanks. That makes sense, and it definitely helps. > >> The socket end (an iteratee) can produce two kinds of errors: iteratee >> errors (which you catch using "catchError") and asynchronous >> exceptions (like "thread killed"), which you can catch using "catch" >> or "finally" from Control.Monad.CatchIO. You would need to handle them >> both in order to be sure your cleanup actions are run. > > So, Snap 0.4 has been released since this was sent, and I noticed that > it has a bracketSnap function. This function does the work of > handling both of those exceptional cases, right?
I believe so, yes, at least as of Snap 0.4.0.2 I think. G -- Gregory Collins <[email protected]> _______________________________________________ Snap mailing list [email protected] http://mailman-mail5.webfaction.com/listinfo/snap
