I&#39;m fairly beginnerish. I&#39;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.<br>
<br>However, I have a new set of compiler errors. I&#39;m getting a similar error hundreds of times, namely<br><br>&quot;Couldn&#39;t match expected type Text.XML.HaXml.Types.QName with actual type &quot;String&quot;.<br>
<br>Poking around, I found this webpage describing an issue with a change to HaXml that happened after version 1.20.2:<br><br>&lt;<a href="http://stackoverflow.com/questions/7501037/how-to-make-haxml-and-drift-work-with-ghc-7-0-3">http://stackoverflow.com/questions/7501037/how-to-make-haxml-and-drift-work-with-ghc-7-0-3</a>&gt;<br>
<br>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.<br>
<br>I tried running<br><br>cabal install HaXml-1.20.2<br><br>but got <br>&quot;Ambiguous model name &#39;Prelude&#39;: it was found in multiple packages: base haskel98-2.0.0.1&quot;<br><br>This sounds like something fundamental about the Haskell packages but I don&#39;t know enough to know what to do. <br>
<br>Mike<br><br>