22 Aug 2012 09:16
How to implement instance of MonadBaseControl IO
yi huang <yi.codeplayer <at> gmail.com>
2012-08-22 07:16:40 GMT
2012-08-22 07:16:40 GMT
I have a `newtype Yun a = Yun { unYun :: ReaderT YunEnv (ResourceT IO) a }` , and i need to define an instance of `MonadBaseControl IO` for it.
Newtype instance deriving don't work here. I guess the answer is simple, i just can't figure it out, hope anybody can lightening me.
Best regards.
Yihuang.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed