someone help me

Nuno Silva nunopedrosilva@yahoo.com
Sat, 30 Nov 2002 08:44:24 -0800 (PST)


--0-1565796293-1038674664=:65834
Content-Type: text/plain; charset=us-ascii


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
--0-1565796293-1038674664=:65834
Content-Type: text/html; charset=us-ascii

<P>I'm relatively new to haskell and have some questions:</P>
<P>1- I want to convert an integer to a char( if I say&nbsp; prelude&gt; convert 4 ... it should return prelude&gt; '4')</P>
<P>2- and vice versa?</P>
<P>3- I want to define a function that stores in a variable the following...</P>
<P>pretended: (Int,Int,Int,Int)</P>
<P>give :: IO Int<BR>give = randomRIO (0,9)</P>
<P>main = do k &lt;- (give,give,give,give)</P>
<P>actualy this isn't possible. but can someone please tell how to do this???</P>
<P>thank you very much</P>
<P>&nbsp;</P>
<P>&nbsp;</P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-1565796293-1038674664=:65834--