Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Declaration = Declaration {
- propertyName :: Text
- valueList :: Values
- isImportant :: Bool
- hasIEhack :: Bool
- clean :: [Declaration] -> [Declaration]
Documentation
data Declaration Source #
A CSS <declaration>.
Declaration | |
|
Instances
Eq Declaration Source # | |
Defined in Hasmin.Types.Declaration (==) :: Declaration -> Declaration -> Bool # (/=) :: Declaration -> Declaration -> Bool # | |
Ord Declaration Source # | |
Defined in Hasmin.Types.Declaration compare :: Declaration -> Declaration -> Ordering # (<) :: Declaration -> Declaration -> Bool # (<=) :: Declaration -> Declaration -> Bool # (>) :: Declaration -> Declaration -> Bool # (>=) :: Declaration -> Declaration -> Bool # max :: Declaration -> Declaration -> Declaration # min :: Declaration -> Declaration -> Declaration # | |
Show Declaration Source # | |
Defined in Hasmin.Types.Declaration showsPrec :: Int -> Declaration -> ShowS # show :: Declaration -> String # showList :: [Declaration] -> ShowS # | |
ToText Declaration Source # | |
Defined in Hasmin.Types.Declaration toText :: Declaration -> Text Source # toBuilder :: Declaration -> Builder Source # | |
Minifiable Declaration Source # | |
Defined in Hasmin.Types.Declaration minify :: Declaration -> Reader Config Declaration Source # |
clean :: [Declaration] -> [Declaration] Source #
Removes longhand rules overwritten by their shorthand further down in the declaration list, and merges shorthand declarations with longhand properties later declared.