Copyright | Copyright (c) 2009-2016 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.
- data SignalHistory m a
- signalHistorySignal :: SignalHistory m a -> Signal m a
- newSignalHistory :: (MonadDES m, MonadIO m, MonadTemplate m) => Signal m a -> Event m (SignalHistory m a)
- newSignalHistoryStartingWith :: (MonadDES m, MonadIO m, MonadTemplate m) => Maybe a -> Signal m a -> Event m (SignalHistory m a)
- readSignalHistory :: (MonadDES m, MonadIO m, MonadTemplate m) => SignalHistory m a -> Event m (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 :: (MonadDES m, MonadIO m, MonadTemplate m) => Signal m a -> Event m (SignalHistory m a) Source #
Create a history of the signal values.
newSignalHistoryStartingWith :: (MonadDES m, MonadIO m, MonadTemplate m) => Maybe a -> Signal m a -> Event m (SignalHistory m a) Source #
Create a history of the signal values starting with the optional initial value.
readSignalHistory :: (MonadDES m, MonadIO m, MonadTemplate m) => SignalHistory m a -> Event m (Array Int Double, Array Int a) Source #
Read the history of signal values.