Module

Halogen.VDom.Machine

Package
purescript-halogen-vdom
Repository
slamdata/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 s b a. Step' a b s -> Step a b

#unStep Source

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

#extract Source

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

Returns the output value of a Step.

#step Source

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

Runs the next step.

#halt Source

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

Runs the finalizer associated with a Step