<div class="gmail_quote">On Tue, Apr 14, 2009 at 9:01 AM, Cristiano Paris <span dir="ltr">&lt;<a href="mailto:frodo@theshire.org">frodo@theshire.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Apr 14, 2009 at 4:54 PM, rodrigo.bonifacio<br>
&lt;<a href="mailto:rodrigo.bonifacio@uol.com.br">rodrigo.bonifacio@uol.com.br</a>&gt; wrote:<br>
</div><div class="im">&gt; Dear Sirs,<br>
&gt;<br>
&gt; I guess this is a very simple question. How can I convert IO [XmlTree] to<br>
&gt; just a list of XmlTree?<br>
<br>
</div>Quick and dirty answer: unsafePerformIO.</blockquote><div><br></div><div>Please don&#39;t say that.  He&#39;s a beginner.</div><div><br></div><div>You realize that the path of least resistance will be to use it, right?</div>
<div><br></div><div>You see why that&#39;s not a good thing?</div><div><br></div><div>Even experts don&#39;t use this function.</div><div><br></div><div>(To the O.P.:  don&#39;t use it)</div><div><br></div><div>Luke</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
That&#39;s an easy finding on Hoogle:<br>
<br>
<a href="http://www.haskell.org/hoogle/?hoogle=IO+a+-%3E+a" target="_blank">http://www.haskell.org/hoogle/?hoogle=IO+a+-%3E+a</a><br>
<br>
Anyhow, as the name suggest, the function is &quot;unsafe&quot;, so you better<br>
know what you&#39;re doing.<br>
<br>
Bye,<br>
<br>
Cristiano<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br>