<div dir="ltr">On Thu, Jun 28, 2012 at 3:27 PM, Lara Michaels <span dir="ltr">&lt;<a href="mailto:laramichaels1978@yahoo.com" target="_blank">laramichaels1978@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Following your earlier advice, I have tried replacing the line</div><div><br></div><div>          diamondLayer :: (Enum b&#39;, Num b&#39;) =&gt; b&#39; -&gt; [(b&#39;, b&#39;)]</div>
<div><br></div><div>with both</div><div><br></div><div>          diamondLayer :: (Enum b&#39;, Num b&#39;, Eq b&#39;) =&gt; b&#39; -&gt; [(b&#39;, b&#39;)]</div></div></div></blockquote><div><br></div><div>This one is correct; you also need to add it to the definition of diamond on line 231, or the error will move there.  (I *think* that is sufficient, but it may be necessary to track down other places where the constraint must be added, as the compiler reports them.)</div>
<div><br></div></div>-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br>
<br>
</div>