Safe Haskell | None |
---|---|
Language | Haskell2010 |
Abstract tags, most tags have very similiar overload mechanisms this provides an abstraction over that
Synopsis
- defaultEl :: (arg -> arg -> arg) -> (arg -> m a -> m a) -> arg -> arg -> m a -> m a
- txtEl :: (Text -> m a -> m a) -> Text -> Text -> m a -> m a
- dynAttrEl :: Reflex t => (Dynamic t AttrMap -> m a -> m a) -> AttrMap -> Dynamic t AttrMap -> m a -> m a
- partialDiv :: DomBuilder t m => Text -> Text -> m a -> m a
Documentation
defaultEl :: (arg -> arg -> arg) -> (arg -> m a -> m a) -> arg -> arg -> m a -> m a Source #
allows us to set a default value for tags by defining a join function not a monoid because often it does it wrong, text needs a space for example in case of classes, and the default map monoid is broken
dynAttrEl :: Reflex t => (Dynamic t AttrMap -> m a -> m a) -> AttrMap -> Dynamic t AttrMap -> m a -> m a Source #
partialDiv :: DomBuilder t m => Text -> Text -> m a -> m a Source #