niagra-0.2.0: CSS EDSL for Haskell

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

Data.Niagra.DSL

Contents

Description

Niagra DSL.

Synopsis

Rendering Functions

css Source

Arguments

:: Monad m 
=> NiagraT m ()

the action to render

-> m Text

minified CSS

Start a CSS declaration in monad m.

css' :: NiagraT Identity () -> Text Source

Non-monadic vesion of css.

cssBuilder Source

Arguments

:: Monad m 
=> NiagraT m ()

the action to render

-> m Builder

builder that builds CSS

Start a CSS declaration in monad m that returns a Builder.

cssBuilder' :: NiagraT Identity () -> Builder Source

Non-monadic version of cssBuilder.

CSS Declaration Functions

block Source

Arguments

:: Monad m 
=> Selector

block's selector that

-> NiagraT m ()

action declaring the block

-> NiagraT m () 

Defines a CSS block.

declaration Source

Arguments

:: Monad m 
=> Text

property

-> Builder

value

-> NiagraT m () 

Make a declaration.

(?) :: Monad m => Selector -> NiagraT m () -> NiagraT m () infix 0 Source

Operator equivalent of block.

(.=) :: Monad m => Text -> Builder -> NiagraT m () infix 1 Source

Operator equivalent of declaration.