Monoid Instance for ReaderT
Elliot Cameron
eacameron at gmail.com
Tue Nov 28 19:34:57 UTC 2017
+1
On Tue, Nov 28, 2017 at 2:22 PM, M Farkas-Dyck <m.farkasdyck at gmail.com>
wrote:
> On 28/11/2017, Andrew Martin <andrew.thaddeus at gmail.com> wrote:
> > instance (Applicative m, Monoid a) => Monoid (ReaderT r m a)
>
> > I believe there is good reason to prefer the first instance over the
> other
> > two.
>
> +1
>
> This is also how the `Monoid` instance of `(->)` is defined.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20171128/32cacc38/attachment.html>
More information about the Libraries
mailing list