On Nov 13, 2007 1:08 AM, Luke Palmer <[EMAIL PROTECTED]> wrote:
> We want MaybeT!

I third this proposal. It would be nice having MaybeT included in mtl.

Besides, and although it's not exactly the same, you can "emulate" the
Maybe monad by using the Either monad (the instance is defined in
Control.Monad.Error).

And in this case you want a monad transformer,  so ErrorT can do the trick.

Just consider that all the Left values are Nothing and the Right
values are Just.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to