Module
Halogen.Aff
- Package
- purescript-halogen
- Repository
- purescript-halogen/purescript-halogen
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 componentmessages
allows external consumers to receive messages raised by the root componentdispose
stops running the UI and finalizes the root component
Re-exports from Halogen.Aff.Util
#selectElement Source
selectElement :: QuerySelector -> Aff (Maybe HTMLElement)
Tries to find an element in the document.
#runHalogenAff Source
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.
#awaitBody Source
awaitBody :: Aff HTMLElement
Waits for the document to load and then finds the body
element.
- Modules
- Halogen
- Halogen.
Aff - Halogen.
Aff. Driver - Halogen.
Aff. Driver. Eval - Halogen.
Aff. Driver. State - Halogen.
Aff. Util - Halogen.
Component - Halogen.
Component. Profunctor - Halogen.
Data. OrdBox - Halogen.
Data. Slot - Halogen.
HTML - Halogen.
HTML. Core - Halogen.
HTML. Elements - Halogen.
HTML. Elements. Keyed - Halogen.
HTML. Events - Halogen.
HTML. Properties - Halogen.
HTML. Properties. ARIA - Halogen.
Query - Halogen.
Query. ChildQuery - Halogen.
Query. Event - Halogen.
Query. HalogenM - Halogen.
Query. HalogenQ - Halogen.
Query. Input - Halogen.
VDom. Driver