stitch-0.6.0.0: lightweight CSS DSL
Stitch.Types.Selector
Description
This module defines everything used to manage CSS selectors: creating them as well as combining them (using the Monoid instance). It also includes a function fromText for converting arbitrary Texts to Selectors.
Monoid
fromText
Text
Selector
newtype Selector Source #
Represents a CSS selector. Can be combined with other Selectors using its Monoid instance.
Constructors
Fields
Defined in Stitch.Types.Selector
Methods
(==) :: Selector -> Selector -> Bool #
(/=) :: Selector -> Selector -> Bool #
compare :: Selector -> Selector -> Ordering #
(<) :: Selector -> Selector -> Bool #
(<=) :: Selector -> Selector -> Bool #
(>) :: Selector -> Selector -> Bool #
(>=) :: Selector -> Selector -> Bool #
max :: Selector -> Selector -> Selector #
min :: Selector -> Selector -> Selector #
readsPrec :: Int -> ReadS Selector #
readList :: ReadS [Selector] #
readPrec :: ReadPrec Selector #
readListPrec :: ReadPrec [Selector] #
showsPrec :: Int -> Selector -> ShowS #
show :: Selector -> String #
showList :: [Selector] -> ShowS #
fromString :: String -> Selector #
(<>) :: Selector -> Selector -> Selector #
sconcat :: NonEmpty Selector -> Selector #
stimes :: Integral b => b -> Selector -> Selector #
mempty :: Selector #
mappend :: Selector -> Selector -> Selector #
mconcat :: [Selector] -> Selector #
fromText :: Text -> Selector Source #
Parse a Selector from a Text value. This is the same function used by the IsString instance used by OverloadedStrings.
IsString
OverloadedStrings