hasmin-1.0.3: CSS Minifier

Copyright(c) 2017 Cristian Adrián Ontivero
LicenseBSD3
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Hasmin.Parser.Internal

Description

 
Synopsis

Documentation

stylesheet :: Parser [Rule] Source #

Parse a stylesheet, starting by the @charset, @import and @namespace rules, followed by the list of rules, and ignoring any unneeded whitespace and comments.

atRule :: Parser Rule Source #

Parser for CSS at-rules (e.g. @keyframes, @media)

styleRule :: Parser Rule Source #

Parses a CSS style rule, e.g. body { padding: 0; }

rule :: Parser Rule Source #

Parser for a CSS rule, which can be either an at-rule (e.g. @charset), or a style rule.

rules :: Parser [Rule] Source #

Parser for CSS rules (both style rules, and at-rules), which can be separated by whitespace or comments.

declaration :: Parser Declaration Source #

Parser for a declaration, starting by the property name.

declarations :: Parser [Declaration] Source #

Parser for a list of declarations, ignoring spaces, comments, and empty declarations (e.g. ; ;)

selector :: Parser Selector Source #

Parser for CSS complex selectors (see Selector for more details).

supportsCondition :: Parser SupportsCondition Source #

Parser for a supports_condition, needed by @supports rules.