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

Reply via email to