~alcinnz/haskell-stylist

e73cd8f9c4ba3bc435d39012833b87b7cfeddb58 — Adrian Cochrane 5 years ago 349b947
Code cleanliness: drop unneeded ' from Data.CSS.Style.Cascade.dispatch'
1 files changed, 5 insertions(+), 5 deletions(-)

M src/Data/CSS/Style/Cascade.hs
M src/Data/CSS/Style/Cascade.hs => src/Data/CSS/Style/Cascade.hs +5 -5
@@ 60,11 60,11 @@ cascadeProperties overrides props = fromList (props ++ overrides)
construct :: PropertyParser p => p -> Props -> p
construct base props = dispatch' base child props
    where child = setVars [item | item@(n, _) <- props, isPrefixOf "--" n] $ inherit base
dispatch' :: PropertyParser p => p -> p -> Props -> p
dispatch' base child ((key, value):props)
    | Just child' <- longhand base child key value = dispatch' base child' props
    | otherwise = dispatch' base child props
dispatch' _ child [] = child
dispatch :: PropertyParser p => p -> p -> Props -> p
dispatch base child ((key, value):props)
    | Just child' <- longhand base child key value = dispatch base child' props
    | otherwise = dispatch base child props
dispatch _ child [] = child

--------
---- attr()