[Haskell-cafe] Re: Occurs check error, help!
kill2thrill at hotmail.com
Sun Mar 21 23:52:19 EDT 2010
Ivan Miljenovic <ivan.miljenovic <at> gmail.com> writes:
> Since my answer before to your question obviously wasn't clear enough,
> let me highlight the lines of the error message that summarise what
> you have to do:
> On 22 March 2010 14:31, adamtheturtle <kill2thrill <at> hotmail.com>
> > Possible fix:
> > add (Eq a) to the context of the type signature for `shuffle'
> Alternatively, use the random-shuffle package rather than coding your own.
So sorry to keep on going on about this but I have been set to start with
"shuffle :: Int -> [a] -> [a]" so I have to do that and can't use the given code
really don't know where to put (Eq a)
Thank you so much for replying :)
More information about the Haskell-Cafe