iteratee alternatives to MonadCatchIO

John Lato jwlato at
Thu Feb 10 18:50:30 GMT 2011

On Thu, Feb 10, 2011 at 6:43 PM, Bas van Dijk <v.dijk.bas at> wrote:

> BTW note that monad-peel/control does not only give you exception
> handling capabilities. It also allows you to lift any "control
> operation" into your monad. Lifting IO control operations for example,
> is easily accomplished using liftIOOp:
> liftIOOp alloca $ \ptr -> ...

That is useful, and partially prompted this discussion.  In fact I wish this
capability was available in iteratee right now.

> Also note that you can both support MonadCatchIO and
> monad-peel/control at the same time. Simply write an instance for both
> and give users a choice what to use.

I presume you mean in the general case, not specifically iteratee, where a
valid instance for either may be impossible.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Iteratee mailing list