
Looks like homework to me, but for 1 and 2 you might look at read/show, head and (:[]); for 3, try executing the give action multiple times seperately. -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Sat, 30 Nov 2002, Nuno Silva wrote:
I'm relatively new to haskell and have some questions:
1- I want to convert an integer to a char( if I say prelude> convert 4 ... it should return prelude> '4')
2- and vice versa?
3- I want to define a function that stores in a variable the following...
pretended: (Int,Int,Int,Int)
give :: IO Int give = randomRIO (0,9)
main = do k <- (give,give,give,give)
actualy this isn't possible. but can someone please tell how to do this???
thank you very much
--------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now