Safe Haskell | None |
---|

- timeCat :: (a -> UTCTime) -> Pipe a a IO r
- timeCatDelayedBy :: (a -> UTCTime) -> Double -> Pipe a a IO r
- relativeTimeCat :: (a -> Double) -> Pipe a a IO r
- relativeTimeCatDelayedBy :: (a -> Double) -> Double -> Pipe a a IO r
- steadyCat :: Double -> Pipe a a IO r
- poissonCat :: Double -> Pipe a a IO r
- poissonCatConst :: Double -> Pipe a a IO r
- genPoissonCat :: GenIO -> Double -> Pipe a a IO r
- catAtTimes :: [UTCTime] -> Pipe a a IO r
- catAtRelativeTimes :: [Double] -> Pipe a a IO r

# Pipes throttled by their own timestamps

timeCat :: (a -> UTCTime) -> Pipe a a IO rSource

Yield values at the absolute times given by their timestamps. Assumes that they arrive in ascending time order. Values with timestamps earlier than the starting time of the effect are discarded

timeCatDelayedBy :: (a -> UTCTime) -> Double -> Pipe a a IO rSource

Yield values at their absolute timesteps, but delay or advance their production by some time (given in seconds). Values with timestamps less than zero after adjustment are discarded

relativeTimeCat :: (a -> Double) -> Pipe a a IO rSource

Yield values some time after the effect is run, according to their relative timestamps. Assumes that values arrive in ascending time order. Values with negative relative timestamps are discarded

relativeTimeCatDelayedBy :: (a -> Double) -> Double -> Pipe a a IO rSource

Yield values at their timestamps, but delay by some time (given in seconds). Passing a negative delay advances the generator, discarding events happening before the effect

# Pipes throttled by you

poissonCat :: Double -> Pipe a a IO rSource

Constant-rate Poisson process yielding values, randomized by IO

poissonCatConst :: Double -> Pipe a a IO rSource

Constant-rate Poisson process with a fixed seed - the same random every time

genPoissonCat :: GenIO -> Double -> Pipe a a IO rSource

Constant-rate Poisson process yielding values, seeded by you

catAtTimes :: [UTCTime] -> Pipe a a IO rSource

Yield values at a set of absolute times. Yield remaining values immediately if the time list becomes empty

catAtRelativeTimes :: [Double] -> Pipe a a IO rSource

Yield values at a set of times relative to the first received value. Yield remaining values immediately if the time list becomes empty