css-syntax-0.1.0.0: High-performance CSS tokenizer and serializer.

Safe HaskellNone
LanguageHaskell2010

Data.CSS.Syntax.Tokens

Synopsis

Documentation

data NumericValue Source #

Constructors

NVInteger !Integer

number without dot . or exponent e

NVNumber !Scientific

number with dot . or exponent e

data HashFlag Source #

Constructors

HId 
HUnrestricted 
Instances
Eq HashFlag Source # 
Instance details

Defined in Data.CSS.Syntax.Tokens

Show HashFlag Source # 
Instance details

Defined in Data.CSS.Syntax.Tokens

type Unit = Text Source #

serialize :: [Token] -> Text Source #

Serialize a list of Tokens back into Text.

Serialization "round-trips" with parsing:

tokenize (serialize (tokenize s)) == tokenize s

https://drafts.csswg.org/css-syntax/#serialization