Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.CSS.Syntax.Selector
Description
Parses CSS selectors
See parseSelectors
Backwards-compatibility module, this API has been moved out into "stylist-traits".
Documentation
Constructors
Element [SimpleSelector] | |
Child Selector [SimpleSelector] | |
Descendant Selector [SimpleSelector] | |
Adjacent Selector [SimpleSelector] | |
Sibling Selector [SimpleSelector] |
data SimpleSelector #
Constructors
Tag Text | |
Namespace Text | |
Id Text | |
Class Text | |
Property (Maybe Text) Text PropertyTest | |
Psuedoclass Text [Token] |
Instances
Eq SimpleSelector | |
Defined in Stylist.Parse.Selector Methods (==) :: SimpleSelector -> SimpleSelector -> Bool (/=) :: SimpleSelector -> SimpleSelector -> Bool | |
Show SimpleSelector | |
Defined in Stylist.Parse.Selector Methods showsPrec :: Int -> SimpleSelector -> ShowS show :: SimpleSelector -> String showList :: [SimpleSelector] -> ShowS | |
Hashable SimpleSelector Source # | |
Defined in Data.CSS.Style.Selector.Index |
data PropertyTest #
Constructors
Exists | |
Equals Text | |
Suffix Text | |
Prefix Text | |
Substring Text | |
Include Text | |
Dash Text | |
Callback PropertyFunc |
Instances
Eq PropertyTest | |
Defined in Stylist.Parse.Selector | |
Show PropertyTest | |
Defined in Stylist.Parse.Selector Methods showsPrec :: Int -> PropertyTest -> ShowS show :: PropertyTest -> String showList :: [PropertyTest] -> ShowS | |
Hashable PropertyTest Source # | |
Defined in Data.CSS.Style.Selector.Index |
data PropertyFunc #
Constructors
PropertyFunc (String -> Bool) |
Instances
Eq PropertyFunc | |
Defined in Stylist.Parse.Selector | |
Show PropertyFunc | |
Defined in Stylist.Parse.Selector Methods showsPrec :: Int -> PropertyFunc -> ShowS show :: PropertyFunc -> String showList :: [PropertyFunc] -> ShowS |
parseSelectors :: Parser [Selector] #