@@ -233,7 +233,7 @@ infix 0 =:=
233instance Description PrefixName IsoXmlDescRecord where
233instance Description PrefixName IsoXmlDescRecord where
234 prefixName =:= descRecord =
234 prefixName =:= descRecord =
235 let descRecordParts = descRecord ^. _IsoXmlDescRecord
235 let descRecordParts = descRecord ^. _IsoXmlDescRecord
236− in isoXmlGenerateRecord prefixName (reverse descRecordParts)
236+ in isoXmlGenerateDatatype prefixName (reverse descRecordParts)
238record :: IsoXmlDescRecord
238record :: IsoXmlDescRecord
239record = IsoXmlDescRecord []
239record = IsoXmlDescRecord []
@@ -312,8 +312,8 @@ isoXmlGenerateEnum (ExhaustivenessName strName' exh) enumCons = do
312 return $ enumDecls ++ [toXmlInst, toXmlAttributeInst,
312 return $ enumDecls ++ [toXmlInst, toXmlAttributeInst,
313 fromDomInst, fromAttributeInst]
313 fromDomInst, fromAttributeInst]
315−isoXmlGenerateRecord :: PrefixName -> [IsoXmlDescRecordPart] -> TH.DecsQ
315+isoXmlGenerateDatatype :: PrefixName -> [IsoXmlDescRecordPart] -> TH.DecsQ
316−isoXmlGenerateRecord (PrefixName strName' strPrefix') descRecordParts = do
316+isoXmlGenerateDatatype (PrefixName strName' strPrefix') descRecordParts = do
318 isNewtype = length descRecordParts == 1
318 isNewtype = length descRecordParts == 1
319 strName = "Xml" ++ strName'
319 strName = "Xml" ++ strName'
@@ -347,7 +347,6 @@ isoXmlGenerateRecord (PrefixName strName' strPrefix') descRecordParts = do
347 XmlAttributePluralOptional -> [t| Maybe $attributeType |]
347 XmlAttributePluralOptional -> [t| Maybe $attributeType |]
349 varStrictType fName (strictType fType)
349 varStrictType fName (strictType fType)
353 [TH.recC name fields]
352 [TH.recC name fields]