stitch-0.2.0.0: lightweight CSS DSL

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Stitch

Synopsis

Documentation

type Stitch = StitchT Identity Source

The StitchT monad transformer specialized to Identity. This will typically be the Stitch variant used since it doesn't do anything special.

type CSS = Stitch () Source

Abstract representation of a CSS document. This can be transformed to an actual CSS document with renderCSS.

runStitch :: Stitch a -> (a, Block) Source

Evaluate a computation in the Stitch monad, returning computation's value and a concrete representation of the CSS document.