stitch-0.6.0.0: lightweight CSS DSL

Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

newtype Selector Source #

Represents a CSS selector. Can be combined with other Selectors using its Monoid instance.

Constructors

Selector 

Fields

fromText :: Text -> Selector Source #

Parse a Selector from a Text value. This is the same function used by the IsString instance used by OverloadedStrings.