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 b a. (b -> Effect Unit -> ConsumeRes b) -> (a -> Effect b) -> Signal a -> Effect (ConsumeRes b)

#consume Source

consume :: forall b a. (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 b a. Event a -> Signal b -> Event b

#fmap Source

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

#flatMap Source

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

#zipWith Source

zipWith :: forall c b a. (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)