github purescript-halogen/purescript-halogen v0.5.2

latest releases: v7.0.0, v6.1.3, v6.1.2...
8 years ago
  • 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.

Don't miss a new purescript-halogen release

NewReleases is sending notifications on new releases.