iteratee alternatives to MonadCatchIO
John Lato
jwlato at gmail.com
Thu Feb 10 18:50:30 GMT 2011
On Thu, Feb 10, 2011 at 6:43 PM, Bas van Dijk <v.dijk.bas at gmail.com> 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.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/iteratee/attachments/20110210/9fd54cd1/attachment-0001.htm>
More information about the Iteratee
mailing list