[Haskell-cafe] Converting IO [XmlTree] to [XmlTree]
Luke Palmer
lrpalmer at gmail.com
Tue Apr 14 11:09:15 EDT 2009
On Tue, Apr 14, 2009 at 9:01 AM, 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.
Please don't say that. He's a beginner.
You realize that the path of least resistance will be to use it, right?
You see why that's not a good thing?
Even experts don't use this function.
(To the O.P.: don't use it)
Luke
>
>
> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090414/d021d1d4/attachment.htm
More information about the Haskell-Cafe
mailing list