css-syntax-0.1.0.2: High-performance CSS tokenizer and serializer.
Safe HaskellSafe-Inferred
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

Instances

Instances details
Show NumericValue Source # 
Instance details

Defined in Data.CSS.Syntax.Tokens

Eq NumericValue Source # 
Instance details

Defined in Data.CSS.Syntax.Tokens

data HashFlag Source #

Constructors

HId 
HUnrestricted 

Instances

Instances details
Show HashFlag Source # 
Instance details

Defined in Data.CSS.Syntax.Tokens

Eq 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