Module

Impulse.FRP.Event

Package
purescript-impulse
Repository
mitchdzugan/purescript-impulse

#Event Source

data Event :: Type -> Type

Instances

#makeEvent Source

makeEvent :: forall a. Effect (Effect Unit) -> Effect (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)

#fmap Source

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

#filter Source

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

#reduce Source

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

#flatMap Source

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

#join Source

join :: forall a. Event a -> Event a -> Event a

#adaptEvent Source

adaptEvent :: forall a b. ((a -> Effect Unit) -> Effect b) -> (b -> Effect Unit) -> Effect (Event a)

#never Source

never :: forall a. Event a

#makeFrom Source

makeFrom :: forall a b. Event a -> (a -> (b -> Effect Unit) -> Effect Unit) -> Event b