<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 25, 2015 at 10:02 AM, Shishir Srivastava <span dir="ltr"><<a href="mailto:shishir.srivastava@gmail.com" target="_blank">shishir.srivastava@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Reading about Monoids it seems they derive a lot on the algebraic structures of 'Groups' ? </div></div></blockquote><div><br></div><div>A monoid is a semigroup with an identity element, and as such inherits much of its behavior from semigroups.</div><div><br></div><div>For historical reasons, a Haskell Monoid is not based on a notional Haskell Semigroup. There are packages that add semigroups and other algebraic structures, and even alternative Preludes that provide a reasonably complete set of algebraic structures. Every so often you'll see bikeshedding in the Haskell community over whether the default Prelude should provide some or all of these. :)</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>