Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Token
- = Whitespace
- | CDO
- | CDC
- | Comma
- | Colon
- | Semicolon
- | LeftParen
- | RightParen
- | LeftSquareBracket
- | RightSquareBracket
- | LeftCurlyBracket
- | RightCurlyBracket
- | SuffixMatch
- | SubstringMatch
- | PrefixMatch
- | DashMatch
- | IncludeMatch
- | Column
- | String !Text
- | BadString
- | Number !Text !NumericValue
- | Percentage !Text !NumericValue
- | Dimension !Text !NumericValue !Unit
- | Url !Text
- | BadUrl
- | Ident !Text
- | AtKeyword !Text
- | Function !Text
- | Hash !HashFlag !Text
- | Delim !Char
- data NumericValue
- data HashFlag
- = HId
- | HUnrestricted
- type Unit = Text
- tokenize :: Text -> [Token]
- serialize :: [Token] -> Text
Documentation
data NumericValue Source #
NVInteger !Integer | number without dot |
NVNumber !Scientific | number with dot |
Instances
Eq NumericValue Source # | |
Defined in Data.CSS.Syntax.Tokens (==) :: NumericValue -> NumericValue -> Bool # (/=) :: NumericValue -> NumericValue -> Bool # | |
Show NumericValue Source # | |
Defined in Data.CSS.Syntax.Tokens showsPrec :: Int -> NumericValue -> ShowS # show :: NumericValue -> String # showList :: [NumericValue] -> ShowS # |