[Haskell-cafe] Future of MonadCatchIO

Ertugrul Söylemez es at ertes.de
Sun Mar 3 17:07:18 CET 2013


Arie Peterson <ariep at xs4all.nl> wrote:

> Would anyone have a problem with a deprecation of
> MonadCatchIO-transformers, and a failure to update it to work with a
> base without 'block' and 'unblock'?

Yes.  This is a simplified variant of a monad I use:

    newtype Continue f m a = Continue (m (Maybe a, f (Continue f a)))

It's related to Cofree and has a valid and very straightforward
MonadCatchIO instance.  However, it's probably impossible to write a
valid MonadTransControl/MonadBaseControl instance for it.

So I kindly ask you not to deprecate MonadCatchIO.  The reason I'm
hesitant about moving to monad-control is that it's hard to understand
and also very difficult to define for CPS monads.  It is commonly
believed to be impossible.

Also I've seen at least one article about the incorrectness of
monad-control.  That's one further reason I like to avoid it.


Greets,
Ertugrul

-- 
Not to be or to be and (not to be or to be and (not to be or to be and
(not to be or to be and ... that is the list monad.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130303/1256f018/attachment.pgp>


More information about the Haskell-Cafe mailing list