> Quick and dirty answer: unsafePerformIO.
 
You can do a lot of cool things with a table saw if you take the blade guard off.

On Tue, Apr 14, 2009 at 11:01 AM, Cristiano Paris <frodo@theshire.org> wrote:
On Tue, Apr 14, 2009 at 4:54 PM, rodrigo.bonifacio
> Dear Sirs,
>
> I guess this is a very simple question. How can I convert IO [XmlTree] to
> just a list of XmlTree?

Quick and dirty answer: unsafePerformIO.

That's an easy finding on Hoogle:

http://www.haskell.org/hoogle/?hoogle=IO+a+-%3E+a

Anyhow, as the name suggest, the function is "unsafe", so you better
know what you're doing.

Bye,

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



--
/jve