[Haskell-cafe] Purpose of Control.Monad.Base class

Joe Quinn headprogrammingczar at gmail.com
Sat Feb 4 15:13:35 UTC 2017

It's a version of lift that penetrates a long chain of MonadTrans-y 
types. It's a more general version of things like this:

Pay attention to the instances, and work out how they resolve this:
liftBase :: IO a -> IdentityT (IdentityT (IdentityT IO)) a

On 2/4/2017 10:06 AM, Guru Devanla wrote:
> Hello,
> I am trying to understand the purpose of the MonadBase class.
> https://hackage.haskell.org/package/transformers-base-0.4.4/docs/Control-Monad-Base.html
> Google search did not give me any helpful answers. Please could some 
> one help me understand the purpose of this class and also point me to 
> any good resources.
> Thanks
> Guru
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170204/80ab2b25/attachment.html>

More information about the Haskell-Cafe mailing list