HaXml Help

D.J.Steinitz D.J.Steinitz@ukc.ac.uk
Sat, 22 Jun 2002 13:15:04 +0100


I wonder if anyone has had this problem before and has already made the modifications which I need?

The good news is that I have managed to get DtdToHaskell to take the SVG DTD and produce a large Haskell file.

cat SVG10.hs | wc

30271  154470 1615569

The bad news is that it doesn't compile - see below. Do I have to add definitions for

OneOf5, OneOf6, OneOf14, OneOf18, OneOf20

by hand? I've found OneOf2, OneOf3, OneOf4 in XmlToHaskell.hs. I assume I need to make the new OneOfs instances of
XmlContent?

Dominic.

ghc  -package lang  -I../HaXml-1.05/lib/  -i../HaXml-1.05/lib/  -c  -o SVG10.o SVG10.hs

SVG10.hs:1188: Type constructor or class not in scope: `OneOf6'

SVG10.hs:1188: Type constructor or class not in scope: `OneOf5'

SVG10.hs:1451: Type constructor or class not in scope: `OneOf6'

SVG10.hs:1451: Type constructor or class not in scope: `OneOf5'

SVG10.hs:1584: Type constructor or class not in scope: `OneOf6'

SVG10.hs:1584: Type constructor or class not in scope: `OneOf20'

SVG10.hs:1852: Type constructor or class not in scope: `OneOf6'

SVG10.hs:1852: Type constructor or class not in scope: `OneOf5'

SVG10.hs:1986: Type constructor or class not in scope: `OneOf6'

SVG10.hs:1986: Type constructor or class not in scope: `OneOf5'

SVG10.hs:2121: Type constructor or class not in scope: `OneOf6'

SVG10.hs:2121: Type constructor or class not in scope: `OneOf5'

SVG10.hs:2257: Type constructor or class not in scope: `OneOf6'

SVG10.hs:2257: Type constructor or class not in scope: `OneOf5'

SVG10.hs:2397: Type constructor or class not in scope: `OneOf6'

SVG10.hs:2397: Type constructor or class not in scope: `OneOf5'

SVG10.hs:2533: Type constructor or class not in scope: `OneOf6'

SVG10.hs:2533: Type constructor or class not in scope: `OneOf5'

SVG10.hs:2673: Type constructor or class not in scope: `OneOf6'

SVG10.hs:2673: Type constructor or class not in scope: `OneOf5'

SVG10.hs:4433: Type constructor or class not in scope: `OneOf6'

SVG10.hs:4467: Type constructor or class not in scope: `OneOf6'

SVG10.hs:4531: Type constructor or class not in scope: `OneOf6'

SVG10.hs:4943: Type constructor or class not in scope: `OneOf6'

SVG10.hs:4943: Type constructor or class not in scope: `OneOf14'

SVG10.hs:5464: Type constructor or class not in scope: `OneOf6'

SVG10.hs:5464: Type constructor or class not in scope: `OneOf18'

SVG10.hs:6645: Type constructor or class not in scope: `OneOf6'

SVG10.hs:6966: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7010: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7079: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7127: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7200: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7225: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7295: Type constructor or class not in scope: `OneOf6'

SVG10.hs:7372: Type constructor or class not in scope: `OneOf6'

SVG10.hs:8223: Type constructor or class not in scope: `OneOf6'