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

Erik Hesselink hesselink at gmail.com
Sat Nov 12 21:41:46 CET 2011


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



More information about the Libraries mailing list