Module

Signal.Effect

#mapEffect

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

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

#foldEffect

foldEffect :: forall a b. (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.

Modules