rhine-0.4.0.2: Functional Reactive Programming with type-level clocks

Safe HaskellNone
LanguageHaskell2010

FRP.Rhine.ResamplingBuffer.MSF

Synopsis

Documentation

msfBuffer Source #

Arguments

:: Monad m 
=> MSF m (TimeInfo cl2, [(TimeInfo cl1, a)]) b

The monadic stream function that consumes a single time stamp for the moment when an output value is required, and a list of timestamped inputs, and outputs a single value. The list will contain the newest element in the head.

-> ResamplingBuffer m cl1 cl2 a b 

Given a monadic stream function that accepts a varying number of inputs (a list), a ResamplingBuffer can be formed that collects all input in a timestamped list