niagra-0.0.1: CSS EDSL for Haskell

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

Data.Niagra

Contents

Description

Provides a basic interface for defining CSS and rendering those blocks into strings.

Niagra produces "minified" CSS.

Synopsis

DSL

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.

block Source

Arguments

:: Monad m 
=> Selector

block's selector that

-> NiagraT (NiagraT m) ()

the block

-> NiagraT m () 

General function for defining a CSS block.

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

Operator equivalent of block.

declaration Source

Arguments

:: Monad m 
=> Text

property

-> Text

value

-> NiagraT (NiagraT m) () 

Make a declaration.

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

Operator equivalent of declaration.

Modules