Module

Halogen.VDom.Driver

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

#runUI Source

runUI :: forall query input output. Component 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, messages :: Emitter output, query :: forall a. query a -> m (Maybe a) }

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

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