14 Mar 2013 04:24
Join a transformer
Michael Snoyman <michael <at> snoyman.com>
2013-03-14 03:24:23 GMT
2013-03-14 03:24:23 GMT
I'm wondering if this pattern exists and has a name. We have the concept of joining a Monad:
join :: Monad m => m (m a) -> ma
How about joining a monad transformer?
joinT :: (Monad m, MonadTrans t) => t (t m) a -> t m a
I believe implementing this in terms of MonadTransControl[1] might be possible, but I was wondering if there's an already existing idiom for this.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed