Stability | stable |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A parser for CSS selectors.
- safeParseCSS :: String -> Either String SelectorsGroup
- parseCSS :: String -> SelectorsGroup
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.