On Mon, Oct 19, 2009 at 9:18 AM, Ketil Malde <ke...@malde.org> wrote:
> zaxis <z_a...@163.com> writes:
>
>> winSSQ count noRed noBlue = do
>>     let yesRed =  [1..33] \\ noRed
>>     let yesBlue = [1..16] \\ noBlue
>>     bracket (openFile "ssqNum.txt" WriteMode) (hClose) (\hd1 -> pickSSQ
>> count yesRed yesBlue hd1)
>
>> It works very well. However, as i am used to C style so i want convert it
>> into
>
>> winSSQ count noRed noBlue = do {
>>     let yesRed =  [1..33] \\ noRed;
>
>                            ^^^     ^
> Didn't you just comment out your semicolons?

Hi Ketil,

That's the first thing I thought when I read this code, then I
realised.... those aren't comment delimiters in Haskell! :-)

D



-- 
Dougal Stanton
dou...@dougalstanton.net // http://www.dougalstanton.net
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to