Hi,

I think you're looking for the function bracket.

See
http://haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html#v:bracket
http://book.realworldhaskell.org/read/io-case-study-a-library-for-searching-the-filesystem.html (Section The acquire-use-release cycle)

Cheers,
Philipp

On 07/03/2011 03:07 PM, Jan Brosius wrote:
Hi,

Is there in Haskell a function like unwindprotect in Lisp.

Thanks
Jan
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners