Copyright | Copyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Tested with: GHC 8.0.1
This module allows collecting the signal history in a more optimal way than it suggests the general implementation.
Synopsis
- data SignalHistory m a
- signalHistorySignal :: SignalHistory m a -> Signal m a
- newSignalHistory :: Signal IO a -> Composite IO (SignalHistory IO a)
- newSignalHistoryStartingWith :: Maybe a -> Signal IO a -> Composite IO (SignalHistory IO a)
- readSignalHistory :: SignalHistory IO a -> Event IO (Array Int Double, Array Int a)
Signal History
data SignalHistory m a Source #
Represents the history of the signal values.
signalHistorySignal :: SignalHistory m a -> Signal m a Source #
The signal for which the history is created.
newSignalHistory :: Signal IO a -> Composite IO (SignalHistory IO a) Source #
Create a history of the signal values.
newSignalHistoryStartingWith :: Maybe a -> Signal IO a -> Composite IO (SignalHistory IO a) Source #
Create a history of the signal values starting with the optional initial value.