- Added
appendTo
utility (@zudov) - Added
ComponentHTML
,ComponentDSL
,ParentHTML
,ParentDSL
synonyms for defining component functions with a style that resembles function types:
-- self-contained components
render :: s -> ComponentHTML f
eval :: Natural f (ComponentDSL s f g)
-- parent components
render :: s -> ParentHTML s' f f' g p
eval :: Natural f (ParentDSL s s' f f' g p)
peek :: forall a. f' a -> ParentDSL s s' f f' g p Unit
These types are also useful when splitting the render
, eval
, or peek
implementations into several functions as the more specific Render
, Eval
, Peek
synonyms weren't always helpful in these situations.