Module

FRP.Event

Package
purescript-behaviors
Repository
paf31/purescript-behaviors

#zip Source

zip :: forall c b a. (a -> b -> c) -> Event a -> Event b -> Event c

Create an Event which combines with the latest values from two other events.

#fold Source

fold :: forall b a. (a -> b -> b) -> Event a -> b -> Event b

Fold over values received from some Event, creating a new Event.

#count Source

count :: forall a. Event a -> Event Int

Count the number of events received.

#filter Source

filter :: forall a. (a -> Boolean) -> Event a -> Event a

Create an Event which only fires when a predicate holds.

#subscribe Source

subscribe :: forall r a eff. (a -> Eff (frp :: FRP | eff) r) -> Event a -> Eff (frp :: FRP | eff) Unit

Subscribe to an Event by providing a callback.