Module

Concur.Core

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

#mkLeafWidget Source

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

Construct a widget with just props

#mkNodeWidget Source

mkNodeWidget :: forall a v. ((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 a v. ((a -> Effect Unit) -> v -> v) -> Free (WidgetStep v) a -> Free (WidgetStep v) a

Re-exports from Concur.Core.IsWidget

#IsWidget Source

class IsWidget :: Type -> (Type -> Type) -> Constraintclass (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 :: Type -> (Type -> Type) -> Constraintclass LiftWidget v m  where

A way to lift widgets into higher monads

Members

Instances

Re-exports from Concur.Core.Types

#WidgetStep Source

#Widget Source

newtype Widget v a

Constructors

Instances

#unWidget Source

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