Safe Haskell | None |
---|
- 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)]
- parseBlock :: Text -> Either String CssBlock
- parseBlocks :: Text -> Either String [CssBlock]
- parseNestedBlocks :: Text -> Either String [NestedBlock]
- data NestedBlock
- = NestedBlock Text [NestedBlock]
- | LeafBlock CssBlock
Documentation
attrParser :: Parser (Text, Text)Source
attrsParser :: Parser [(Text, Text)]Source
parseBlock :: Text -> Either String CssBlockSource
parseBlocks :: Text -> Either String [CssBlock]Source
parseNestedBlocks :: Text -> Either String [NestedBlock]Source
The preferred parser, will capture media queries
data NestedBlock Source
NestedBlock Text [NestedBlock] | |
LeafBlock CssBlock |