Hi.
On 27 June 2011 16:33, Roelof Wobben
<rwobben@hotmail.com> wrote:
let lucky 7 = "Lucky number seven"
let lucky x = "Sorry, you're out of luck, pal!"
But if I do lucky 7 or lucky 2 I always get the last sentence.
The second let binding shadows the first one. Try:
let lucky 7 = "Lucky!"; lucky x = "No luck this time."
Or even better, write this in a file and load it into ghci.
lucky 7 = "Lucky!"
lucky x = "No luck this time."
HTH,
Ozgur