[Haskell-cafe] Brackets and Asynchronous Exceptions

2009-04-15 Thread Andrew Gallagher
Hi, In a program I am writing, I have many locations where I acquire a resource, perform an operation with it, then release it. I have been using the 'bracket' function so that the release operation would be performed even if the operation threw an exception. This seems to work nicely.

Re: [Haskell-cafe] Brackets and Asynchronous Exceptions

2009-04-15 Thread Andrew Gallagher
Great. Thanks! This is exactly what I was looking for. Apparently this issue is also described in the paper Asynchronous Exception in Haskell. Thanks, Andrew On Wed, 15 Apr 2009, Jason Dagit wrote: On Wed, Apr 15, 2009 at 4:06 PM, Andrew Gallagher a...@cs.ucla.edu wrote: Hi, In a program