~alcinnz/haskell-stylist

ref: df2761aad16333724b3fe15635d4d99e1663f3c5 haskell-stylist/src/Stylish/Element.hs -rw-r--r-- 274 bytes
df2761aa — Adrian Cochrane Compile 'complex' selectors (ones with multiple tests but no tree traversal). 5 years ago
                                                                                
df2761aa Adrian Cochrane
1
2
3
4
5
6
7
8
9
10
11
module Stylish.Element(
        Element(..), Attribute(..)
    ) where

data Element = ElementNode {
    parent :: Maybe Element,
    previous :: Maybe Element,
    name :: String,
    attributes :: [Attribute] -- in sorted order.
}
data Attribute = Attribute String String