cvs commit: HaXml/src/Text/XML/HaXml/DtdToHaskell Convert.hs
Instance.hs
Malcolm Wallace
malcolm@glass.cse.ogi.edu
Fri, 25 Jul 2003 05:35:23 -0700
malcolm 2003/07/25 05:35:23 PDT
Modified files:
src/Text/XML/HaXml/DtdToHaskell Convert.hs Instance.hs
Log:
Fix DtdToHaskell's conversion of complex content specifications to
Haskell datatypes. Previously,
(b | c | ((d|e|f|g)?, ((h|i)*, j?)))
was treated incorrectly as if it were
(b | c | (d|e|f|g)? | (h|i)* | j?)
This fix introduces the possibility of a tuple type as a top-level
component of a Haskell type representing an XML element. Instances
would previously have been generated using the un-implemented
expression 'nyi_fromElem_Tuple', which is now implemented as 'definite
fromElem'.
Revision Changes Path
1.7 +15 -14 HaXml/src/Text/XML/HaXml/DtdToHaskell/Convert.hs
1.6 +9 -4 HaXml/src/Text/XML/HaXml/DtdToHaskell/Instance.hs