hxt-css-0.1.0.1: CSS selectors for HXT

Stabilitystable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.XML.HXT.CSS.Parser

Description

A parser for CSS selectors.

Synopsis

Documentation

safeParseCSS :: String -> Either String SelectorsGroup Source

Parse a string to an AST. If the parser fails, it returns a left value with an error message.

parseCSS :: String -> SelectorsGroup Source

Like safeParseCSS, but calls error if given an invalid CSS selector.