Hi.<br><br><div class="gmail_quote">On 27 June 2011 16:33, Roelof Wobben <span dir="ltr"><<a href="mailto:rwobben@hotmail.com">rwobben@hotmail.com</a>></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 = "Lucky number seven"<br>
let lucky x = "Sorry, you're out of luck, pal!"<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="'courier new', monospace">let lucky 7 = "Lucky!"; lucky x = "No luck this time."</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="'courier new', monospace">lucky 7 = "Lucky!"</font></div><div><font class="Apple-style-span" face="'courier new', monospace">lucky x = "No luck this time."<br clear="all">
</font><br></div><div>HTH,</div><div>Ozgur<br>
</div>