<div><span class="gmail_quote">On 12/3/07, <b class="gmail_sendername">Kalman Noel</b> &lt;<a href="mailto:kalman.noel@bluebottle.com">kalman.noel@bluebottle.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You&#39;re confusing sum and product types. That is, you&#39;re using a product type,<br>but you probably need a sum type, like this:
</blockquote>
<div>&nbsp;</div>
<div>I&#39;m not so sure; it looks like they already have that type (Exp) and wants to use AlgExp to hold the &quot;folding&quot; functions used.</div>
<div>&nbsp;</div>
<div>Carlo, I think you&#39;re on the right track.&nbsp;Think of it this way:&nbsp;you have some Exps and you want to get&nbsp;some things&nbsp;of type &quot;a&quot; to pass to the functions in alg.&nbsp; How could you get those things with what you have so far?
</div>
<div>&nbsp;</div>
<div>&nbsp; -- ryan</div></div>