Module

Impulse.FRP

Package
purescript-impulse
Repository
mitchdzugan/purescript-impulse

Re-exports from Impulse.FRP.Event

#throttle Source

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

#tagWithSkipPreR Source

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

#tagWith Source

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

#reduce Source

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

#rebuildBy Source

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

#push Source

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

#never Source

never :: forall a. Event a

#mkEvent Source

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

#join Source

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

#fmap Source

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

#flatMap Source

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

#filter Source

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

#dedup Source

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

#debounce Source

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

#consume Source

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

Re-exports from Impulse.FRP.Signal

#SubRes Source

data SubRes :: Type -> Type

#Signal Source

data Signal :: Type -> Type

#SigClass Source

data SigClass :: Type

#SigBuilder Source

#SigBuild Source

data SigBuild :: Type -> Type

#s_zipWith Source

s_zipWith :: forall c b a. (a -> b -> c) -> Signal a -> Signal b -> SigBuilder c

#s_unsub Source

s_unsub :: forall a. SubRes a -> Effect Unit

#s_tagWith Source

s_tagWith :: forall c b a. (a -> b -> c) -> Event a -> Signal b -> Event c

#s_tag Source

s_tag :: forall b a. Event a -> Signal b -> Event b

#s_subRes Source

s_subRes :: forall a. SubRes a -> a

#s_sub Source

s_sub :: forall b a. (a -> Effect b) -> Signal a -> Effect (SubRes b)

#s_reduce_s Source

s_reduce_s :: forall b a. (a -> b -> a) -> a -> Signal b -> SigBuilder a

#s_reduce_e Source

s_reduce_e :: forall b a. (a -> b -> a) -> a -> Event b -> SigBuilder a

#s_reduce Source

s_reduce :: forall a. (a -> a -> a) -> Signal a -> SigBuilder a

#s_inst Source

s_inst :: forall a. Signal a -> Effect a

#s_from Source

s_from :: forall a. Event a -> a -> SigBuilder a

#s_fmap Source

s_fmap :: forall b a. (a -> b) -> Signal a -> SigBuilder b

#s_flatten Source

s_flatten :: forall a. Signal (Signal a) -> SigBuilder a

#s_destroy Source

s_destroy :: forall a. Signal a -> Effect Unit

#s_dedup Source

s_dedup :: forall a. Eq a => Signal a -> SigBuilder a

#s_const Source

s_const :: forall a. a -> SigBuilder a

#s_changed Source

s_changed :: forall a. Signal a -> Event a

#s_build Source

s_build :: forall a. SigBuilder a -> SigBuild a

#eff_sigBuilder Source

eff_sigBuilder :: forall a. SigBuilder a -> Effect { destroy :: Effect Unit, signal :: Signal a }