Module

Halogen.VDom.Machine

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

#Machine Source

type Machine a b = EffectFn1 a (Step a b)

#Step' Source

data Step' a b s

Constructors

#Step Source

data Step :: Type -> Type -> Type

#mkStep Source

mkStep :: forall a b s. Step' a b s -> Step a b

#unStep Source

unStep :: forall a b r. (forall s. Step' a b s -> r) -> Step a b -> r

#extract Source

extract :: forall a b. Step a b -> b

Returns the output value of a Step.

#step Source

step :: forall a b. EffectFn2 (Step a b) a (Step a b)

Runs the next step.

#halt Source

halt :: forall a b. EffectFn1 (Step a b) Unit

Runs the finalizer associated with a Step