From 5fa9521a1116cc849612d27b696698b4b7410d90 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Sat, 25 Apr 2020 15:03:52 +1200 Subject: [PATCH] Release XML Conduit Stylist 2.0.0.0! --- xml-conduit-stylist/src/Data/HTML2CSS.hs | 3 ++- xml-conduit-stylist/xml-conduit-stylist.cabal | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xml-conduit-stylist/src/Data/HTML2CSS.hs b/xml-conduit-stylist/src/Data/HTML2CSS.hs index ba84a30..7020370 100644 --- a/xml-conduit-stylist/src/Data/HTML2CSS.hs +++ b/xml-conduit-stylist/src/Data/HTML2CSS.hs @@ -2,7 +2,7 @@ -- | Bindings from `xml-conduit` to `haskell-stylist`. module Data.HTML2CSS( html2css, cssPriorityAgent, cssPriorityUser, cssPriorityAuthor, -- parsing - preorder, el2styletree, els2stylist, el2stylist, stylize, stylize' -- application + preorder, el2styletree, els2stylist, el2stylist, stylize, stylize', stylizeEl -- application ) where import qualified Data.List as L @@ -110,3 +110,4 @@ stylize' stylesheet parent _ el = [ base = cascade stylesheet el overrides $ fromMaybe temp $ lookup "" =<< parent overrides = concat [fst $ parseProperties' $ tokenize $ Txt.pack val | Attribute "style" _ val <- attributes el] +stylizeEl stylesheet = stylize stylesheet . el2stylist diff --git a/xml-conduit-stylist/xml-conduit-stylist.cabal b/xml-conduit-stylist/xml-conduit-stylist.cabal index 35ac147..0e88bfb 100644 --- a/xml-conduit-stylist/xml-conduit-stylist.cabal +++ b/xml-conduit-stylist/xml-conduit-stylist.cabal @@ -10,7 +10,7 @@ name: xml-conduit-stylist -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change -version: 1.2.0.0 +version: 2.0.0.0 -- A short (one-line) description of the package. synopsis: Bridge between xml-conduit/html-conduit and stylist -- 2.30.2