<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 19, 2014 at 5:25 PM, Frantisek Farka <span dir="ltr"><<a href="mailto:frantisek@farka.eu" target="_blank">frantisek@farka.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">when reading the Functor-Applicative-Monad proposal [1] on Haskell<br>
wiki I remembered that I have seen instance similar to<br>
<br>
    instance (Monad m) => Functor m where<br>
        fmap f a = a >>= \x -> return $ f x<br>
<br>
with FlexibleInstances and UndecidableInstances language extensions.<br>
But I cannot remember where it was nor can I find any useful reference.<br>
Is there some library in Hackage with this and similar instances?<br></blockquote><div><br></div><div>There is not, because the need for UndecidableInstances there is warning you that this is perilous.</div><div><br></div>
<div>I thought some of the discussion behind the AMP touched on why this was not considered as a solution?</div><div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div>
<div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div>
</div>
</div></div>