~alcinnz/haskell-stylist

7d540c43481903333757c1232c6fdd6d7626b623 — Adrian Cochrane 5 years ago 9e7ce5e
Compose together rule stores.
1 files changed, 17 insertions(+), 0 deletions(-)

A src/Stylish/Style/Selector.hs
A src/Stylish/Style/Selector.hs => src/Stylish/Style/Selector.hs +17 -0
@@ 0,0 1,17 @@
module Stylish.Style.Selector(
        
    ) where

import Stylish.Style.Selector.Index
import Stylish.Style.Selector.Interpret
import Stylish.Style.Selector.Specificity
import Stylish.Style.Selector.Common

ruleStore = OrderedRuleStore (InterpretedRuleStore styleIndex) 0

data QueryableStyleSheet = QueryableStyleSheet {
    store :: RuleStore,
    priority :: Int -- author vs user agent vs user styles
}

queryableStyleSheet = QueryableStyleSheet {store = ruleStore, proirity = 0}