[Haskell-cafe] For class Monoid; better names than mempty & mappend might have been: mid (mident) & mbinop

Henning Thielemann schlepptop at henning-thielemann.de
Mon Aug 8 10:56:00 CEST 2011

On 24.07.2011 22:20, Antoine Latter wrote:
> On Sat, Jul 23, 2011 at 1:41 PM, KC<kc1956 at gmail.com>  wrote:
>> It would be easier for beginners to "grok".
> I think that assumes that all beginners have a strong foundation in
> algebra. Although it does have the advantage that the names are as
> abstract as the class.

As pointed out earlier in this list, the name of the class and the 
methods are inconsistent. Monoid refers to a general algebraic 
structure, whereas mempty and mappend refer to certain instances like lists.

More information about the Haskell-Cafe mailing list