[Haskell-cafe] Converting IO [XmlTree] to [XmlTree]
lennart at augustsson.net
Tue Apr 14 13:19:54 EDT 2009
Never answer such newbie questions with unsafePerformIO.
That's the wrong answer 99.99% of the time, but giving it to a newbie
they might follow your advice.
On Tue, Apr 14, 2009 at 5:01 PM, Cristiano Paris <frodo at theshire.org> wrote:
> On Tue, Apr 14, 2009 at 4:54 PM, rodrigo.bonifacio
> <rodrigo.bonifacio at 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?
> Quick and dirty answer: unsafePerformIO.
> That's an easy finding on Hoogle:
> Anyhow, as the name suggest, the function is "unsafe", so you better
> know what you're doing.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe