Module

SodiumFRP.Class

Package
purescript-sodium
Repository
SodiumFRP/purescript-sodium

#SodiumStream Source

#newStream Source

newStream :: forall a. Stream a

#newStreamSink Source

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

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

#newStreamLoop Source

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 Source

class SodiumCell c  where

Members

Instances

#newCell Source

newCell :: forall a. a -> Cell a

#newCellSink Source

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

#newCellLoop Source

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 Source

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 Source

class Sendable s  where

Send events or change of behavior

Members

Instances