[Haskell-cafe] Generalized monadic exception handling with monad-peel

2010-11-03 Thread Anders Kaseorg
I just released the monad-peel library to Hackage. http://hackage.haskell.org/package/monad-peel MonadPeelIO is a simple class that allows lifting monadic control operations, such as those in Control.Exception and Foreign.Marshal.Alloc, through layers of monad transformers. It comes with

Re: [Haskell-cafe] Generalized monadic exception handling with monad-peel

2010-11-03 Thread Bas van Dijk
On Wed, Nov 3, 2010 at 10:59 AM, Anders Kaseorg ande...@mit.edu wrote: I just released the monad-peel library to Hackage. This is great news! My regions library uses 'bracket' from MonadCatchIO in the runRegionT function. Due to the recent discussion on MonadCatchIO I realized that users could

Re: [Haskell-cafe] Generalized monadic exception handling with monad-peel

2010-11-03 Thread Anders Kaseorg
On Wed, 3 Nov 2010, Bas van Dijk wrote: Something else: In the soon to be released base-4.3 the block and unblock functions will be deprecated in favor of mask. It would be great if you can also add these new functions to Control.Exception.Peel: Yeah, I was putting off learning how to deal