rhine-1.3: Functional Reactive Programming with type-level clocks
Safe HaskellSafe-Inferred
LanguageHaskell2010

FRP.Rhine.ResamplingBuffer.ClSF

Description

Collect and process all incoming values statefully and with time stamps.

Synopsis

Documentation

clsfBuffer Source #

Arguments

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

The clocked signal function that consumes 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 clocked signal function that accepts a varying number of timestamped inputs (a list), a ResamplingBuffer can be formed that collects all this input and steps the signal function whenever output is requested.