bracketOnError, while, forever

Simon Marlow simonmar at
Tue Feb 8 05:03:41 EST 2005

On 07 February 2005 12:51, Peter Simons wrote:

> I just found the rather useful function 'bracketOnError' in
> Network.hs and was wondering why it is not exported. You
> need this combinator every time you fork off a computation
> with an acquired resource, which happens pretty often in
> network code, so I think making it available would be
> worthwhile.

I think we should have bracketOnError, but I don't think the name is
that great.  Any ideas for a better one?


More information about the Libraries mailing list