| Copyright | (c) Nathaniel Symer, 2015 |
|---|---|
| License | MIT |
| Maintainer | nate@symer.io |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Niagra.Block
Contents
Description
CSS declaration blocks.
- data Block
- = DeclarationBlock Selector [Declaration]
- | BuilderBlock Selector Builder
- data Declaration = Declaration Text Text
- isEmpty :: Block -> Bool
- buildBlock :: Block -> Builder
Types
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 |
data Declaration Source
A single declaration
Constructors
| Declaration Text Text |
Instances
| Show Declaration Source | |
| Monad m => MonadState (Seq (Selector, Seq Declaration)) (NiagraT m) Source |