[Haskell-cafe] Handling exceptions or gracefully releasing resources

Johan Tibell johan.tibell at gmail.com
Wed Jan 30 00:26:57 CET 2013


The pattern is essentially the same as in imperative languages; every
allocation should involve a finally clause that deallocates the

On Tue, Jan 29, 2013 at 2:59 PM, Thiago Negri <evohunz at gmail.com> wrote:
> Should I put `Control.Exception.finally` on every single line of my
> finalizers?

I'm not sure what you're asking here. If your finally clause tries to
call close, you don't have to catch exceptions raise by close (what
would you do with them anyway).

More information about the Haskell-Cafe mailing list