xml-conduit-stylist-3.0.0.1: Bridge between xml-conduit/html-conduit and stylist
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.HTML2CSS

Description

Bindings from `xml-conduit` to `haskell-stylist`.

Synopsis
  • html2css :: StyleSheet s => Document -> URI -> s -> s
  • el2styletree :: IsString a => Element -> StyleTree (Either Element [(a, [Token])])
  • els2stylist :: StyleTree (Either Element [(Text, [Token])]) -> StyleTree Element
  • el2stylist :: Element -> StyleTree Element

Documentation

html2css :: StyleSheet s => Document -> URI -> s -> s Source #

Converts a parsed XML or HTML file to a ConditionalStyles StyleSheet.

el2styletree :: IsString a => Element -> StyleTree (Either Element [(a, [Token])]) Source #

els2stylist :: StyleTree (Either Element [(Text, [Token])]) -> StyleTree Element Source #

el2stylist :: Element -> StyleTree Element Source #