Module

SodiumFRP.Class

#SodiumStream

#newStream

newStream :: forall a. Stream a

#newStreamSink

newStreamSink :: forall a. Maybe (a -> a -> a) -> Effect (StreamSink a)

StreamSinks can be used to send events The optional value is merging function

#newStreamLoop

newStreamLoop :: forall a. Effect (StreamLoop a)

A forward reference for a 'Stream' equivalent to the Stream that is referenced. Must be run in an explicit Transaction

#SodiumCell

class SodiumCell c  where

Members

Instances

#newCell

newCell :: forall a. a -> Cell a

#newCellSink

newCellSink :: forall a. a -> Maybe (a -> a -> a) -> Effect (CellSink a)

#newCellLoop

newCellLoop :: forall a. Effect (CellLoop a)

A forward reference for a 'Cell' equivalent to the Cell that is referenced. Must be run in an explicit Transaction

#Listenable

class Listenable l  where

Listen for firings of this cell or event. The returned Effect is a function that unregisteres the listener This is the observer pattern.

Members

Instances

#Sendable

class Sendable s  where

Send events or change of behavior

Members

Instances

Modules