[Haskell-cafe] How to show a variable with "show"?

Michael Onofruk onfrek at yahoo.com
Thu May 5 08:16:18 EDT 2005


> module Main where
> 
> main = do putStr (show (foo 3))
>           putStr "\n"
>           putStr (show (foo 7))
>           putStr "\n"
>           putStr (show y)
> 
> foo x = (x + 2) / y where
>		y = 2 * 2
 
And how do I see functions or variables defined
inside of other functions? In example above - y


		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



More information about the Haskell-Cafe mailing list