On 12-01-30 08:06 AM, Pēteris Paikens wrote:
import Text.XML.HXT.Core
import Text.XML.HXT.DOM.XmlTreeFilter
selectAllText :: ArrowXml a = a XmlTree XmlTree
selectAllText = deep isXText
Delete import Text.XML.HXT.DOM.XmlTreeFilter. Change isXText to
isText. That is,
import
I'm quite stuck on getting HXT working to do my xml parsing, can you
help me to get started?
Even in
http://www.haskell.org/haskellwiki/HXT#Getting_started:_Hello_world_examples
the basic filter example that's given there in section 6:
import Text.XML.HXT.Core
import
On Mon, Jan 30, 2012 at 3:06 PM, Pēteris Paikens peter...@gmail.com wrote:
I'm quite stuck on getting HXT working to do my xml parsing, can you
help me to get started?
Even in
http://www.haskell.org/haskellwiki/HXT#Getting_started:_Hello_world_examples
the basic filter example that's given
Couldn't match expected type `Data.Tree.NTree.TypeDefs.NTree XNode'
with actual type `hxt-8.5.4:Data.Tree.NTree.TypeDefs.NTree
hxt-8.5.4:Text.XML.HXT.DOM.TypeDefs.XNode'
perhaps you have installed several (conflicting) versions of
Yep, that does seem to be the case - cabal shows Versions installed:
8.5.4, 9.1.6.
The module referenced in the website example -
Text.XML.HXT.DOM.XmlTreeFilter and function isXText - has only old
packages, so when installing hxt I got version 9.1.6, but from
hxt-filter I got hxt 8.5.4, so that's