stylist-2.7.0.1: Apply CSS styles to a document tree.
Safe HaskellNone
LanguageHaskell2010

Data.CSS.Syntax.Selector

Description

Parses CSS selectors See parseSelectors

Backwards-compatibility module, this API has been moved out into "stylist-traits".

Documentation

data Selector #

Instances

Instances details
Eq Selector 
Instance details

Defined in Stylist.Parse.Selector

Methods

(==) :: Selector -> Selector -> Bool

(/=) :: Selector -> Selector -> Bool

Show Selector 
Instance details

Defined in Stylist.Parse.Selector

Methods

showsPrec :: Int -> Selector -> ShowS

show :: Selector -> String

showList :: [Selector] -> ShowS

data SimpleSelector #

Constructors

Tag Text 
Namespace Text 
Id Text 
Class Text 
Property (Maybe Text) Text PropertyTest 
Psuedoclass Text [Token] 

Instances

Instances details
Eq SimpleSelector 
Instance details

Defined in Stylist.Parse.Selector

Show SimpleSelector 
Instance details

Defined in Stylist.Parse.Selector

Methods

showsPrec :: Int -> SimpleSelector -> ShowS

show :: SimpleSelector -> String

showList :: [SimpleSelector] -> ShowS

Hashable SimpleSelector Source # 
Instance details

Defined in Data.CSS.Style.Selector.Index

Methods

hashWithSalt :: Int -> SimpleSelector -> Int #

hash :: SimpleSelector -> Int #

data PropertyTest #

Constructors

Exists 
Equals Text 
Suffix Text 
Prefix Text 
Substring Text 
Include Text 
Dash Text 
Callback PropertyFunc 

Instances

Instances details
Eq PropertyTest 
Instance details

Defined in Stylist.Parse.Selector

Methods

(==) :: PropertyTest -> PropertyTest -> Bool

(/=) :: PropertyTest -> PropertyTest -> Bool

Show PropertyTest 
Instance details

Defined in Stylist.Parse.Selector

Methods

showsPrec :: Int -> PropertyTest -> ShowS

show :: PropertyTest -> String

showList :: [PropertyTest] -> ShowS

Hashable PropertyTest Source # 
Instance details

Defined in Data.CSS.Style.Selector.Index

Methods

hashWithSalt :: Int -> PropertyTest -> Int #

hash :: PropertyTest -> Int #

data PropertyFunc #

Constructors

PropertyFunc (String -> Bool) 

Instances

Instances details
Eq PropertyFunc 
Instance details

Defined in Stylist.Parse.Selector

Methods

(==) :: PropertyFunc -> PropertyFunc -> Bool

(/=) :: PropertyFunc -> PropertyFunc -> Bool

Show PropertyFunc 
Instance details

Defined in Stylist.Parse.Selector

Methods

showsPrec :: Int -> PropertyFunc -> ShowS

show :: PropertyFunc -> String

showList :: [PropertyFunc] -> ShowS