You can access IO values only from within do blocks (see any tutorial, previous posts or google). It looks like this then: do= myvalue <- functionwhichreturnsIOValue dosomethingwith myvalue
Due to monads you don't have to leave the IO monad this way. Oh. Have to go now. do is translated into >>= syntax, see do expansion. Hope this did help else wait for another longer answer ;-) Marc _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe