Module

Concur.Core

Package
purescript-concur-react
Repository
ajnsit/purescript-concur

#mkLeafWidget Source

mkLeafWidget :: forall v a. ((a -> Effect Unit) -> v) -> Widget v a

Construct a widget with just props

#withViewEvent Source

withViewEvent :: forall v a. ((a -> Effect Unit) -> v) -> Widget v a

Construct a widget from a primitive view event

#wrapViewEvent Source

wrapViewEvent :: forall v a. ((a -> Effect Unit) -> v -> v) -> Widget v a -> Widget v a

Construct a widget, by wrapping an existing widget in a view event

#wrapViewEvent' Source

wrapViewEvent' :: forall v a. ((a -> Effect Unit) -> v -> v) -> Free (WidgetStep v) a -> Free (WidgetStep v) a

#wrapViewEventFunc Source

wrapViewEventFunc :: forall x v a. Monoid v => ((a -> Effect Unit) -> (x -> Effect v) -> v) -> (x -> Widget v a) -> Widget v a

Construct a widget, by wrapping a widget constructor function in a view event

Re-exports from Concur.Core.Types

#WidgetStep Source

newtype WidgetStep v a

Constructors

Instances

#Widget Source

newtype Widget v a

Constructors

Instances

#unWidget Source

unWidget :: forall a v. Widget v a -> Free (WidgetStep v) a

#resume Source

resume :: forall a f. Functor f => Free f a -> Either a (f (Free f a))