stitch-0.4.0.0: lightweight CSS DSL

Safe HaskellNone
LanguageHaskell2010

Stitch.Types

Description

Defines all the types needed for Stitch's internal CSS representation. You shouldn't need to import this module unless you're messing around with the Block representation before outputting CSS.

Synopsis

Documentation

newtype Children Source #

Children is a simple specialized wrapper around Map with a custom Monoid instance. Instead of simply unioning the two Maps, the Children instance mappends the two values together in case of a key clash.

data Property Source #

Type for a CSS property or comment. The two are combined because we want to keep the ordering of comments and properties in the output CSS.

Constructors

Property Text Text 
Comment Text 

newtype Import Source #

Basic newtype for handling css @import statements.

Constructors

Import Text 

data Block Source #

Top-level representation of a CSS document.

Constructors

Block [Import] [Property] Children