niagra-0.2.0: CSS EDSL for Haskell

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

Data.Niagra.Value

Description

The Value typeclass is designed to blur the distinction between single Builders, tuples of Builders, and lists of Builders.

Each structure behaves differently:

  • Lists are comma-separated
  • Tuples are space-separated
  • Plain Builders aren't modified.

Synopsis

Documentation

class Value a where Source

Represents a CSS declaration value. Value is designed to allow CSS properties with many space-separated values to be declared either like [px 1, "solid"] or simply px 1.

Methods

build Source

Arguments

:: a 
-> Builder

Build a value.

inherit :: Builder Source

CSS inherit.

initial :: Builder Source

CSS initial.

none :: Builder Source

CSS none.