
13 Nov
2009
13 Nov
'09
12:48 p.m.
Magicloud Magiclouds
Message: 26 Date: Sat, 14 Nov 2009 01:11:27 +0800 From: Magicloud Magiclouds
Subject: Re: [Haskell-cafe] Could someone teach me why we use Data.Monoid? To: Stephen Tetley Cc: haskell-cafe Message-ID: <3bd412d40911130911v4f3ac0b9laebca79f5921491d@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 That is OK. Since understand the basic concept of monoid (I mean the thing in actual math), the idea here is totally not hard for me. But the sample here does not show why (or how) we use it in programming, right?
For an example of it's use, you might enjoy reading my article in the Monad.Reader "How to Refold a Map."
Cheers, David