Module

Impulse.FRP.Signal

Package
purescript-impulse
Repository
mitchdzugan/purescript-impulse

#Signal Source

data Signal :: Type -> Type

#ConsumeRes Source

data ConsumeRes a

Constructors

#makeSignal Source

makeSignal :: forall a. Event a -> a -> Effect (Signal a)

#off Source

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

#consumeImpl Source

consumeImpl :: forall a b. (b -> Effect Unit -> ConsumeRes b) -> (a -> Effect b) -> Signal a -> Effect (ConsumeRes b)

#consume Source

consume :: forall a b. (a -> Effect b) -> Signal a -> Effect (ConsumeRes b)

#val Source

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

#changed Source

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

#dedupImpl Source

dedupImpl :: forall a. (a -> a -> Boolean) -> Signal a -> Effect (Signal a)

#tag Source

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

#fmap Source

fmap :: forall a b. (a -> b) -> Signal a -> Effect (Signal b)

#flatMap Source

flatMap :: forall a b. (a -> Effect (Signal b)) -> Signal a -> Effect (Signal b)

#zipWith Source

zipWith :: forall a b c. (a -> b -> c) -> Signal a -> Signal b -> Effect (Signal c)

#ofVal Source

ofVal :: forall a. a -> Effect (Signal a)

#dedup Source

dedup :: forall a. Eq a => Signal a -> Effect (Signal a)