Proposal: Add the orphan instance Monoid e => Monad ((, )e) to Data.Monoid

Edward Kmett ekmett at gmail.com
Sat Nov 12 21:46:15 CET 2011


Er. Yep.

Thats what I get for writing it inline rather than pasting =)

On Sat, Nov 12, 2011 at 3:41 PM, Erik Hesselink <hesselink at gmail.com> wrote:

> On Sat, Nov 12, 2011 at 21:29, Edward Kmett <ekmett at gmail.com> wrote:
> > instance Monoid e => Monad ((,) e) where
> >         return a = (a, mempty)
>
> This should probably be:
>    return a = (mempty, a)
>
> Erik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20111112/850d6d13/attachment.htm>


More information about the Libraries mailing list