~alcinnz/haskell-stylist

ref: 38022972af85067203abd9b8855ad0f9e56a0399 haskell-stylist/src/Stylish/Element.hs -rw-r--r-- 308 bytes
38022972 — Adrian Cochrane Implement dispatching parser of CSS properties. 5 years ago
                                                                                
df2761aa Adrian Cochrane
8492d01f Adrian Cochrane
df2761aa Adrian Cochrane
8492d01f Adrian Cochrane
df2761aa Adrian Cochrane
8492d01f Adrian Cochrane
1
2
3
4
5
6
7
8
9
10
11
12
13
module Stylish.Element(
        Element(..), Attribute(..)
    ) where

import Data.Text.Internal (Text(..))

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