haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

Subject: Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt
From: Cale Gibbard
Date: Thu, 15 Jan 2009 18:10:48 -0500
2009/1/15 Sittampalam, Ganesh <ganesh.sittampalam@xxxxxxxxxxxxxxxxx>:
> Lennart Augustsson wrote:
>> I think the documentation should be reasonably newbie-friendly too.
>> But that doesn't mean we should call Monoid Appendable.
>> Appendable is just misleading, since Monoid is more general than
>> appending.
>
> Then why does it have a member named 'mappend'? :-)
>
> Ganesh

Good question. The names of the methods of the Monoid class are inappropriate.

My personal preference would be:

class Monoid m where
   zero :: m
   (++) :: m -> m -> m

(in the Prelude of course)

 - Cale
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>