[Haskell-cafe] Comments from OCaml Hacker Brian Hurt

John A. De Goes john at n-brain.net
Thu Jan 15 21:57:59 EST 2009


+1 to that

Regards,

John

On Jan 15, 2009, at 4:10 PM, Cale Gibbard wrote:

> 2009/1/15 Sittampalam, Ganesh <ganesh.sittampalam at credit-suisse.com>:
>> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list