Copyright  Copyright (c) 20092017 David Sorokin <david.sorokin@gmail.com> 

License  BSD3 
Maintainer  David Sorokin <david.sorokin@gmail.com> 
Stability  experimental 
Safe Haskell  None 
Language  Haskell2010 
Synopsis
 newtype Channel m a b = Channel {
 runChannel :: Signal m a > Composite m (Signal m b)
 delayChannel :: MonadDES m => Double > Channel m a a
 delayChannelM :: MonadDES m => Event m Double > Channel m a a
 sinkSignal :: MonadDES m => Signal m a > Composite m ()
 traceChannel :: MonadDES m => String > Channel m a b > Channel m a b
Channel Computation
newtype Channel m a b Source #
It allows representing a signal transformation.
Channel  

Delay Channel
Return a delayed signal.
This is actually the delaySignal
function wrapped in the Channel
type.
Like delayChannel
, but it recomputes the delay each time.
This is actually the delaySignalM
function wrapped in the Channel
type.
Sinking Signal
sinkSignal :: MonadDES m => Signal m a > Composite m () Source #
Sink the signal. It returns a computation that subscribes to the signal and then ignores the received data. The resulting computation can be a moving force to simulate the whole system of the interconnected signals and channels.