Here's another way of looking at what others have already said. The only way you can do that is within the scope of another IO action. For example:

outputXmlTrees :: IO ()
outputXmlTrees = do
  trees <- inputXmlTrees;
  let newTrees = transform trees;
  print . show $ newTrees

Notice a few things:
Hope this clarifies

On Tue, Apr 14, 2009 at 10:54 AM, rodrigo.bonifacio <rodrigo.bonifacio@uol.com.br> wrote:

Dear Sirs,

I guess this is a very simple question. How can I convert IO [XmlTree] to just a list of XmlTree?

Regards,

Rodrigo.

 


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe