Skip to content

v0.5.2

Compare
Choose a tag to compare
@garyb garyb released this 21 Oct 11:59
· 732 commits to master since this release
  • 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.