Module

Halogen.Aff

Re-exports from Halogen.Aff.Driver

#HalogenIO

type HalogenIO f o m = { query :: f ~> m, subscribe :: Consumer o 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 and subscribe allows external consumers to receive messages raised by the root component.

Re-exports from Halogen.Aff.Util

#selectElement

selectElement :: QuerySelector -> Aff (Maybe HTMLElement)

Tries to find an element in the document.

#runHalogenAff

runHalogenAff :: forall x. Aff x -> Effect Unit

Runs an Aff value of the type commonly used by Halogen components. Any unhandled errors will be re-thrown as exceptions.

#awaitLoad

awaitLoad :: Aff Unit

Waits for the document to load.

#awaitBody

awaitBody :: Aff HTMLElement

Waits for the document to load and then finds the body element.

Modules