We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d521c49 commit 2b5316fCopy full SHA for 2b5316f
src/Text/XmlHtml/Common.hs
@@ -36,13 +36,13 @@ data Document = XmlDocument {
36
-- element. XML processing instructions are intentionally omitted as a
37
-- simplification, and CDATA and plain text are both text nodes, since they
38
-- ought to be semantically interchangeable.
39
-data Node = TextNode !Text
40
- | Comment !Text
41
- | Element {
+data Node = Element {
42
elementTag :: !Text,
43
elementAttrs :: ![(Text, Text)],
44
elementChildren :: ![Node]
45
}
+ | TextNode !Text
+ | Comment !Text
46
deriving (Eq, Show)
47
48
0 commit comments