Module

OutWatch.Sink

Package
purescript-outwatch
Repository
OutWatch/purescript-outwatch

#Observer Source

newtype Observer e a

Constructors

Instances

#SinkLike Source

type SinkLike e a r = { sink :: Observer e a | r }

#Handler Source

type Handler eff a = { sink :: Observer eff a, src :: Observable a }

#Sink Source

type Sink e a = { sink :: Observer e a }

#createHandler Source

createHandler :: forall a e. Array a -> Handler e a

#createInputHandler Source

#createMouseHandler Source

#createKeyboardHandler Source

#createStringHandler Source

#createBoolHandler Source

#createNumberHandler Source

#create Source

create :: forall a e. (a -> Eff e Unit) -> Sink e a

#redirect Source

redirect :: forall a b e r. SinkLike e a r -> (Observable b -> Observable a) -> Sink e b

#redirect2 Source

redirect2 :: forall a b c e r. SinkLike e a r -> (ObservableImpl b -> ObservableImpl c -> ObservableImpl a) -> Tuple (Sink e b) (Sink e c)

#redirect3 Source

redirect3 :: forall a b c d e r. SinkLike e a r -> (ObservableImpl b -> ObservableImpl c -> ObservableImpl d -> ObservableImpl a) -> Tuple3 (Sink e b) (Sink e c) (Sink e d)

#redirectMap Source

redirectMap :: forall a b e r. SinkLike e a r -> (b -> a) -> Sink e b