Hi.<br><br><div class="gmail_quote">On 27 June 2011 16:33, Roelof Wobben <span dir="ltr">&lt;<a href="mailto:rwobben@hotmail.com">rwobben@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":66">let lucky 7 = &quot;Lucky number seven&quot;<br>
 let lucky x = &quot;Sorry, you&#39;re out of luck, pal!&quot;<br>


<br>
But if I do lucky 7 or lucky 2 I always get the last sentence.</div></blockquote></div><div><br></div>The second let binding shadows the first one. Try:<div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">let lucky 7 = &quot;Lucky!&quot;; lucky x = &quot;No luck this time.&quot;</font><br>
<br></div><div>Or even better, write this in a file and load it into ghci.</div><div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">lucky 7 = &quot;Lucky!&quot;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">lucky x = &quot;No luck this time.&quot;<br clear="all">
</font><br></div><div>HTH,</div><div>Ozgur<br>
</div>