[Haskell-cafe] Occurs check error, help!

boblettoj boblettoj99 at msn.com
Sat Mar 20 18:03:01 EDT 2010


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.



More information about the Haskell-Cafe mailing list