Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stitch.Types
Description
Documentation
Constructors
Selector | |
Fields
|
Children is a simple specialized wrapper around Map
with a custom Monoid
instance. Instead of simply union
ing the two Map
s, the Children
instance mappend
s the two values together in case of a key clash.
Constructors
Children (Map Selector InnerBlock) |
Type for a CSS property or comment. The two are combined because we want to keep the ordering of comments and properties in the output CSS.
Basic newtype for handling css @import
statements.
Top-level representation of a CSS document.
data InnerBlock Source #
Constructors
InnerBlock [Property] Children |
Instances
Eq InnerBlock Source # | |
Defined in Stitch.Types | |
Read InnerBlock Source # | |
Defined in Stitch.Types Methods readsPrec :: Int -> ReadS InnerBlock # readList :: ReadS [InnerBlock] # readPrec :: ReadPrec InnerBlock # readListPrec :: ReadPrec [InnerBlock] # | |
Show InnerBlock Source # | |
Defined in Stitch.Types Methods showsPrec :: Int -> InnerBlock -> ShowS # show :: InnerBlock -> String # showList :: [InnerBlock] -> ShowS # | |
Semigroup InnerBlock Source # | |
Defined in Stitch.Types Methods (<>) :: InnerBlock -> InnerBlock -> InnerBlock # sconcat :: NonEmpty InnerBlock -> InnerBlock # stimes :: Integral b => b -> InnerBlock -> InnerBlock # | |
Monoid InnerBlock Source # | |
Defined in Stitch.Types Methods mempty :: InnerBlock # mappend :: InnerBlock -> InnerBlock -> InnerBlock # mconcat :: [InnerBlock] -> InnerBlock # |