~alcinnz/haskell-stylist

ref: 6a71648846f51fad1d9d3d9d964319de66b75e2f haskell-stylist/Stylish/Select.hs -rw-r--r-- 413 bytes
6a716488 — Adrian Cochrane Model the tree being matched, to be converted from XML conduit. 5 years ago
                                                                                
6a716488 Adrian Cochrane
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Stylish.Select(
        DocumentNode(..),
        DocumentAttribute(..)
    ) where

data DocumentNode = DocumentNode {
    parent :: DocumentNode,
    prev :: DocumentNode,
    name :: Text,
    namespace :: Text,
    attributes :: [DocumentAttribute] -- Sorted alphabetically by name.
}

data DocumentAttribute = DocumentAttribute {
    name :: Text,
--    namespace :: Text, -- TODO
    value :: Text
}