just use the "<-" in the Monad like
... do
t <- f -- where f has the type IO(Something)
-- use t which is of type Something
...
return t -- makes an IO(Something)
Btw: This thread might fit better to the haskell-cafe list.
Georg
On Tue, 11 Nov 2003 00:37:54 -0800, Ryoko Nanase <[EMAIL PROTECTED]> wrote:
Hello, everyone.
I learned 'return' function which makes any type t to IO t. Is there any way to
makes any IO t to type t? I want that method because I need only the value of
input, without printing any output. You might tell me another way to do it if
the transformation of "IO t" into "t" is not required. Thanks in advance.
Peace,
Jason
Customize MSN Messenger with backgrounds, emoticons and more.
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell
_______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
