Module

Impulse.FRP.Event

Package
purescript-impulse
Repository
mitchdzugan/purescript-impulse

#mkEvent Source

mkEvent :: forall a. ((a -> Effect Unit) -> Effect (Effect Unit)) -> Event a

#push Source

push :: forall a. a -> Event a -> Effect Unit

#consume Source

consume :: forall a. (a -> Effect Unit) -> Event a -> Effect (Effect Unit)

#rebuildBy Source

rebuildBy :: forall b a. (a -> Array b) -> Event a -> Event b

#fmap Source

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

#filter Source

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

#reduce Source

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

#flatMap Source

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

#join Source

join :: forall a. Array (Event a) -> Event a

#dedup Source

dedup :: forall a. Eq a => Event a -> Event a

#tagWith Source

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

#tagWithSkipPreR Source

tagWithSkipPreR :: forall c r l. (l -> r -> c) -> Event l -> Event r -> Event c

#never Source

never :: forall a. Event a

#debounce Source

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

#throttle Source

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