Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Parse CSS with parseNestedBlocks and render it with renderNestedBlock
- data NestedBlock
- = NestedBlock Text [NestedBlock]
- | LeafBlock CssBlock
- parseNestedBlocks :: Text -> Either String [NestedBlock]
- parseBlocks :: Text -> Either String [CssBlock]
- parseBlock :: Text -> Either String CssBlock
- attrParser :: Parser (Text, Text)
- attrsParser :: Parser [(Text, Text)]
- blockParser :: Parser (Text, [(Text, Text)])
- blocksParser :: Parser [(Text, [(Text, Text)])]
- parseAttr :: Text -> Either String (Text, Text)
- parseAttrs :: Text -> Either String [(Text, Text)]
Documentation
data NestedBlock Source #
NestedBlock Text [NestedBlock] | for example a media query |
LeafBlock CssBlock |
parseNestedBlocks :: Text -> Either String [NestedBlock] Source #
The preferred parser, will capture media queries