stitch-0.3.0.0: lightweight CSS DSL

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Stitch

Description

This module exports the Stitch type, which is simply StitchT parameterized over Identity, for computations which don't require any other monadic capabilities.

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.