[Haskell-cafe] For class Monoid; better names than mempty & mappend might have been: mid (mident) & mbinop
Thomas Schilling
nominolo at googlemail.com
Sun Jul 24 20:39:18 CEST 2011
Yes, this has sort-of been agreed upon in a GHC ticket about a year
ago: http://hackage.haskell.org/trac/ghc/ticket/3339
I had a patch in Darcs, but then came the switch to Git. I ported it
to Git, but didn't iron out all the issues. That was quite a while
ago so it's currently a bit bitrotten. I don't think it's enough time
to get it into 7.2, but since that's largely an unstable release, it
wouldn't hurt until 7.4. I'll probably work on it at CamHac in a few
weeks.
On 24 July 2011 13:14, Maciej Wos <maciej.wos at gmail.com> wrote:
> Personally, I have nothing against mempty (although I agree that mid makes
> more sense), but I don't like mappend at all. I wonder what happened to the
> idea of using <> instead of mappend (that's what I always do). I think
>
> a <> b <> c
>
> looks so much better than
>
> a `mappend` b `mappend` c
>
> and it solves the name problem altogether.
>
> -- Maciej
>
> On Jul 24, 2011 3:42 AM, "KC" <kc1956 at gmail.com> wrote:
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
--
Push the envelope. Watch it bend.
More information about the Haskell-Cafe
mailing list