<div dir="auto">I think the MonadPlus instance should probably have a MonadPlus constraint, since MonadPlus makes a sort of statement about the interaction between >>= and mplus, even if it's a bit of an ambiguous one.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019, 12:30 AM Fumiaki Kinoshita <<a href="mailto:fumiexcel@gmail.com">fumiexcel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>This is another part of <a href="https://gitlab.haskell.org/ghc/ghc/merge_requests/644" target="_blank" rel="noreferrer">https://gitlab.haskell.org/ghc/ghc/merge_requests/644</a>, which is presumably much less controversial:<br class="m_53381447158382037gmail-Apple-interchange-newline"><br></div><div>Generic (Kleisli m a b)</div><div><code><span class="m_53381447158382037gmail-kt">Functor</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-o">=></span> <span class="m_53381447158382037gmail-kt">Functor</span> <span class="m_53381447158382037gmail-p">(</span><span class="m_53381447158382037gmail-kt">Kleisli</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-n">a</span><span class="m_53381447158382037gmail-p">)</span></code><br></div><div><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-kt">Applicative</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-o">=></span> <span class="m_53381447158382037gmail-kt">Applicative</span> <span class="m_53381447158382037gmail-p">(</span><span class="m_53381447158382037gmail-kt">Kleisli</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-n">a</span><span class="m_53381447158382037gmail-p">)</span></code><br></span></code></div><div><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-kt">Alternative</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-o">=></span> <span class="m_53381447158382037gmail-kt">Alternative</span> <span class="m_53381447158382037gmail-p">(</span><span class="m_53381447158382037gmail-kt">Kleisli</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-n">a</span><span class="m_53381447158382037gmail-p">)</span></code><br></span></code></span></code></div><div><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-kt">Monad</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-o">=></span> <span class="m_53381447158382037gmail-kt">Monad</span> <span class="m_53381447158382037gmail-p">(</span><span class="m_53381447158382037gmail-kt">Kleisli</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-n">a</span><span class="m_53381447158382037gmail-p">)</span></code><br></span></code></span></code></span></code></div><div><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p"><code><span class="m_53381447158382037gmail-p">(</span><span class="m_53381447158382037gmail-kt">Alternative</span> <span class="m_53381447158382037gmail-n">m</span><span class="m_53381447158382037gmail-p">,</span> <span class="m_53381447158382037gmail-kt">Monad</span> <span class="m_53381447158382037gmail-n">m</span><span class="m_53381447158382037gmail-p">)</span> <span class="m_53381447158382037gmail-o">=></span> <span class="m_53381447158382037gmail-kt">MonadPlus</span> <span class="m_53381447158382037gmail-p">(</span><span class="m_53381447158382037gmail-kt">Kleisli</span> <span class="m_53381447158382037gmail-n">m</span> <span class="m_53381447158382037gmail-n">a</span><span class="m_53381447158382037gmail-p">)</span></code></span></code></span></code></span></code></span></code></div></div></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>