
20 Mar
2010
20 Mar
'10
10:03 p.m.
Oh yeh, how silly. How do i create a generator to use in that function call then? i've tried using a do like this: shuffle i cards = do gen <- mkStdGen 10 return ([(cards!!i) : (shuffle (randomR (0, ((length cards)-2)) gen) (delete (cards!!i) cards))]) but that gives me an error about indentation, what's going on? thanks -- View this message in context: http://old.nabble.com/Occurs-check-error%2C-help%21-tp27966341p27972236.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.