patch applied (packages/HaXml): Fix incorrect tag-names when using DtdToHaskell-generated types.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Feb 3 08:55:16 EST 2009


Tue Feb  3 05:39:26 PST 2009  Malcolm.Wallace at cs.york.ac.uk
  * Fix incorrect tag-names when using DtdToHaskell-generated types.
  During the merge of Xml2Haskell and Haskell2Xml, it appears that
  some of the Haskell2Xml-specific tag-munging was inadvertently adopted
  for all conversions.  Haskell and DTDs have rather different content
  models, based on sum of product types or regular expression types,
  respectively.  So you can't intermingle datatypes with different origins
  after all.  The symptom is lots of <list-..> and <maybe-..> tags
  appearing where they should not.
  
  The large common subset of XmlContent is now in T.X.H.XmlContent.Parser.
  The original T.X.H.XmlContent now adds class instances specific to
  DtdToHaskell-generated types.  An alternative set of instances (for
  Haskell-original datatypes) is in T.X.H.XmlContent.Haskell.

     ./src/Text/XML/HaXml/XmlContent.hs -> ./src/Text/XML/HaXml/XmlContent/Parser.hs
    M ./HaXml.cabal -1 +3
    M ./docs/changelog.html +2
    A ./src/Text/XML/HaXml/XmlContent/
    A ./src/Text/XML/HaXml/XmlContent.hs
    A ./src/Text/XML/HaXml/XmlContent/Haskell.hs
    M ./src/Text/XML/HaXml/XmlContent/Parser.hs -205 +7

View patch online:
http://darcs.haskell.org/packages/HaXml/_darcs/patches/20090203133926-6871e-f122f2c1de65d38c1ed00ebc4332ff1db2569bc8.gz


More information about the Cvs-libraries mailing list