Module

Signal.Effect

Package
purescript-signal
Repository
bodil/purescript-signal

#mapEffect Source

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

Apply an effectful function to signal values and signal the results.

#foldEffect Source

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

Creates a past dependent signal with an effectful computation. The function argument takes the value of the input signal, and the previous value of the output signal, to produce the new value of the output signal wraped inside an Effect action.