Yes but, for instance, every library which provides monad transformers will provides a MTL's MonadTrans instance, not a monadLib's MonadT instance.<br>And since a library hides its types internals, you cannot write the MonadT instances yourself.<br>
<br>For instance, I was planning to translate a little program of mine (which uses quite heavily monad transformers) to monadLib. It uses the packages operational which is based on MTL, and I cannot make myself operational's transformers instances of MonadT.<br>
<br>How would you solve that?<br><br>(btw, I like the fact that monadLib provides IdT ^^ (IdentityT))<br><br><div class="gmail_quote">2010/7/6 Ertugrul Soeylemez <span dir="ltr"><<a href="mailto:es@ertes.de">es@ertes.de</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Yves Parès <<a href="mailto:limestrael@gmail.com">limestrael@gmail.com</a>> wrote:<br>
<br>
> monadLib looks nice, indeed, but the major problem with using it<br>
> resides in the fact that most of the libraries on hackage use MTL.<br>
> Must be tedious to have to use two monad libraries at the same time...<br>
<br>
</div>In general this is a minor problem. Note that when using a monad from<br>
another library usually you get provided with a type alias (or even a<br>
newtype) and a number of convenience functions, so you don't have to<br>
access names from both libraries at the same time.<br>
<br>
I can only speak for myself, but I've never had a problem with this,<br>
even though my packages often have lots and lots of dependencies.<br>
<div><div></div><div class="h5"><br>
<br>
Greets,<br>
Ertugrul<br>
<br>
<br>
--<br>
nightmare = unsafePerformIO (getWrongWife >>= sex)<br>
<a href="http://ertes.de/" target="_blank">http://ertes.de/</a><br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>