niagra-0.0.2: CSS EDSL for Haskell

Copyright(c) Nathaniel Symer, 2015
LicenseMIT
Maintainernate@symer.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Data.Niagra.Block

Contents

Description

CSS declaration blocks.

Synopsis

Types

data Block Source

Block data structure.

Constructors

DeclarationBlock Selector [Declaration]

Create a block with a declaration list for a body

BuilderBlock Selector Builder

create a block with a builder body

Instances

data Declaration Source

A single declaration

Constructors

Declaration Text Text 

Predicates

isEmpty :: Block -> Bool Source

Determine if a block is empty.

Builder

buildBlock Source

Arguments

:: Block

block to render

-> Builder 

Build a string from a Block