[Haskell-cafe] Newbie question on iterating over IO list

minh thu noteed at gmail.com
Tue Jun 20 05:26:09 EDT 2006


2006/6/20, Taro Ikai <taro at ikaisan.com>:
> Sebastian,
>
> Thanks for your help. I learned two things:
>
> o show is not an action, but a function. Using it in the interactive
> mode of GHCI was making me confused.
>

hi,
in ghci, if I want to see the result of an IO action, I do this

ghci> x <- myIOAction
ghci> x

I dont know if it s the right way but it works..

mt


More information about the Haskell-Cafe mailing list