Module

Concur.Core

Package
purescript-concur-core
Repository
purescript-concur/purescript-concur-core

#mkLeafWidget Source

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

Construct a widget with just props

#mkNodeWidget Source

mkNodeWidget :: 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

#mkNodeWidget' Source

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

Re-exports from Concur.Core.IsWidget

#IsWidget Source

class (Monad m, Monoid v, ShiftMap (Widget v) m, LiftWidget v m, MultiAlternative m) <= IsWidget v m 

A Nice way to bring into scope all needed functionality which we need to write widgets

Instances

Re-exports from Concur.Core.LiftWidget

#LiftWidget Source

class LiftWidget v m  where

A way to lift widgets into higher monads

Members

Instances

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))