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