Module

Halogen.VDom.Driver

#runUI

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

Re-exports from Halogen.Aff.Driver

#HalogenIO

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

Modules