xml-conduit-stylist 1.1.0.0 → 1.2.0.0
raw patch · 2 files changed
+10/−9 lines, 2 filesdep ~stylist
Dependency ranges changed: stylist
Files
- src/Data/HTML2CSS.hs +7/−6
- xml-conduit-stylist.cabal +3/−3
src/Data/HTML2CSS.hs view
@@ -141,20 +141,21 @@ | otherwise = [] -- | Converts a xml-conduit Element to a stylist Element.-elToStylish (XML.Element (XML.Name name _ _) attrs _) parent previous =+elToStylish (XML.Element (XML.Name name ns _) attrs _) parent previous = ElementNode { name = name,+ namespace = fromMaybe "" ns, attributes = L.sort [- Attribute (XML.nameLocalName name) (Txt.unpack value)- | (name, value) <- M.toList attrs+ Attribute name (fromMaybe "" ns) (Txt.unpack value)+ | (XML.Name name ns _, value) <- M.toList attrs ], parent = parent, previous = previous } addPsuedoclasses el psuedoclasses- | (Attribute "" value : attrs) <- attributes el = el {- attributes = Attribute "" (psuedoclasses ++ value) : attrs+ | (Attribute "" "" value : attrs) <- attributes el = el {+ attributes = Attribute "" "" (psuedoclasses ++ value) : attrs } | otherwise = el {- attributes = Attribute "" psuedoclasses : attributes el+ attributes = Attribute "" "" psuedoclasses : attributes el }
xml-conduit-stylist.cabal view
@@ -10,7 +10,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 1.1.0.0+version: 1.2.0.0 -- A short (one-line) description of the package. synopsis: Bridge between xml-conduit/html-conduit and stylist@@ -19,7 +19,7 @@ description: Parses CSS from an HTML webpage and queries relevant properties for each element. -- URL for the project homepage or repository.-homepage: https://git.nzoss.org.nz/alcinnz/stylish-haskell+homepage: https://git.adrian.geek.nz/haskell-stylist.git -- The license under which the package is released. license: MIT@@ -61,7 +61,7 @@ -- Other library packages from which modules are imported. build-depends: base >=4.9 && <4.10,- stylist >=1.2.0 && <2, css-syntax, unordered-containers,+ stylist >=2 && <3, css-syntax, unordered-containers, xml-conduit >=1.8 && < 1.9, text, containers, network-uri