<div dir="ltr">This is also how the Monoid instance of basically everything with an Applicative instance is defined. The only one that I feel should differ from the others is Maybe, and that's getting fixed when Semigroup becomes a superclass of Monoid.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 28, 2017 at 2:22 PM, M Farkas-Dyck <span dir="ltr"><<a href="mailto:m.farkasdyck@gmail.com" target="_blank">m.farkasdyck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 28/11/2017, Andrew Martin <<a href="mailto:andrew.thaddeus@gmail.com">andrew.thaddeus@gmail.com</a>> wrote:<br>
> instance (Applicative m, Monoid a) => Monoid (ReaderT r m a)<br>
<br>
</span><span class="">> I believe there is good reason to prefer the first instance over the other<br>
> two.<br>
<br>
</span>+1<br>
<br>
This is also how the `Monoid` instance of `(->)` is defined.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">-Andrew Thaddeus Martin</div>
</div>