[Haskell-cafe] Converting IO [XmlTree] to [XmlTree]

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Apr 14 11:18:33 EDT 2009

Hello rodrigo.bonifacio,

Tuesday, April 14, 2009, 6:54:07 PM, you wrote:

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

IO [XmlTree] is an action returning [XmlTree]. so to "convert" it to
[XmlTree] you just need to execute it in IO monad:

value <- action

i suggest you to read http://haskell.org/haskellwiki/IO_inside
in order to manage IO monad

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list