Here&#39;s a clearer description:<div>class Monad m where</div><div>    return :: a -&gt; m a</div><div>    (&gt;&gt;=) :: m a -&gt; (a -&gt; m b) -&gt; m b</div><div><br></div><div>Instances of Monad must satisfy the following laws:</div>
<div>  return a &gt;&gt;= k == k a</div><div>  m &gt;&gt;= return == m</div><div>  m &gt;&gt;= (k &gt;&gt;= h) == (m &gt;&gt;= k) &gt;&gt;= h</div><div><br></div><div>Much more clear and concise, don&#39;t you think?<br><br>
<div class="gmail_quote">On Wed, Apr 22, 2009 at 6:21 AM, Daniel Carrera <span dir="ltr">&lt;<a href="mailto:daniel.carrera@theingots.org">daniel.carrera@theingots.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I hate monads.<br>
<br>
I love 90% of Haskell. The functional stuff is beautiful, easy to understand, crystal clear, elegant, etc. But I&#39;m having a mighty hard time getting my head around monads. Consider the following explanation of a monad:<br>

<br>
&quot;A monad is represented as a type constructor (call it m), a function that builds values of that type (a -&gt; m a), and a function that combines values of that type with computations that produce values of that type to produce a new computation for values of that type&quot;.<br>

<br>
1) I know what a type is, but not a &quot;type constructor&quot;. I don&#39;t normally think of an Int or even a complex type as being &quot;constructed&quot; except in the sense of OOP which I know is not what the author means.<br>

<br>
2) Just *read* the paragraph... &quot;a type constructor, a function that builds value of that type, and a function that combines values of that type with computations that produce values of that type to produce a computation of values of that type&quot;   Ugh....<br>

<br>
<br>
Can anyone recommend a simple and clear explanation of monads? You can assume that I know basic math and basic Haskell syntax. So, for example, &quot;a -&gt; b&quot; is much more clear than &quot;a function that takes input of one type and has an output of a different type&quot;.<br>

<br>
Any help would be appreciated.<br>
<br>
Daniel.<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>