Module

Halogen.VDom.Driver

Package
purescript-halogen
Repository
purescript-halogen/purescript-halogen

#runUI Source

runUI :: forall output input query. Component HTML query input output Aff -> input -> HTMLElement -> Aff (HalogenIO query output Aff)

Re-exports from Halogen.Aff.Driver

#HalogenIO Source

type HalogenIO query output m = { dispose :: m Unit, query :: forall a. query a -> m (Maybe a), subscribe :: Consumer output m Unit -> m Unit }

A record produced when the root component in a Halogen UI has been run.

  • query allows external sources to query the root component
  • subscribe allows external consumers to receive messages raised by the root component
  • dispose stops running the UI and finalizes the root component