
19 Oct
2009
19 Oct
'09
2:35 a.m.
thanks for your quick answer. But I think he actually answered your question. I.e. try it with this extra 'do' statement:
winSSQ count noRed noBlue = do { do let yesRed = [1..33] \\ noRed; let yesBlue = [1..16] \\ noBlue; bracket (openFile "ssqNum.txt" WriteMode) (hClose) (\hd1 -> pickSSQ count yesRed yesBlue hd1); } In the future please use complete examples that have all variables and import statements. It helps us help you. Cheers, Thomas