HaXml
2012-11-09 23:04:33 GMT
I'm fairly beginnerish. I'm trying to use HaXml with MusicXML. I got a hold of the MusicXML DTD and ran DtdToHaskell. It generated a file which I then attempted to import to a test program. I got a few compiler errors about duplicate definitions and ambiguous definitions. It seemed pretty clear that these resulted from names in the DTD clashing with each other or with existing names, and I just tweaked some of those. Those compile errors went away.
However, I have a new set of compiler errors. I'm getting a similar error hundreds of times, namely
"Couldn't match expected type Text.XML.HaXml.Types.QName with actual type "String".
Poking around, I found this webpage describing an issue with a change to HaXml that happened after version 1.20.2:
<http://stackoverflow.com/questions/7501037/how-to-make-haxml-and-drift-work-with-ghc-7-0-3>
This web page suggests that I need to install HaXml-1.20.2 to use it with the current version of the DtdToHaskell utility. Note that I already have the latest version of HaXml installed, so I would need to replace it with an older version.
I tried running
cabal install HaXml-1.20.2
but got
"Ambiguous model name 'Prelude': it was found in multiple packages: base haskel98-2.0.0.1"
This sounds like something fundamental about the Haskell packages but I don't know enough to know what to do.
Mike
_______________________________________________ Haskell mailing list Haskell <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell
RSS Feed