Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data MultiSignal n a = MultiSignal {
- unMultiSignal :: Signal (Vec n a)
- class Prependable f where
- type SignalLike f = (Prependable f, Applicative f)
- mealyP :: SignalLike f => (s -> i -> (s, o)) -> s -> f i -> f o
- mooreP :: SignalLike f => (s -> i -> s) -> (s -> o) -> s -> f i -> f o
- windowP :: (KnownNat n, Default a, SignalLike f) => f a -> Vec n (f a)
Documentation
data MultiSignal n a Source #
MultiSignal | |
|
Prependable
class Prependable f where Source #
class that can be prepended
- rule
toList (
prepend
a ax) == a : toList ax
Prependable ZipList Source # | |
Prependable (Signal' SystemClock) Source # | |
(KnownNat n, (~) Nat n ((+) m 1)) => Prependable (MultiSignal n) Source # | |
Utility functions
type SignalLike f = (Prependable f, Applicative f) Source #
Constraints synonym
:: SignalLike f | |
=> (s -> i -> (s, o)) | Transfer function in mealy machine form:
|
-> s | Initial state |
-> f i -> f o | Synchronous sequential function with input and output matching that of the mealy machine |
:: SignalLike f | |
=> (s -> i -> s) | Transfer function in moore machine form:
|
-> (s -> o) | Output function in moore machine form:
|
-> s | Initial state |
-> f i -> f o | Synchronous sequential function with input and output matching that of the moore machine |
:: (KnownNat n, Default a, SignalLike f) | |
=> f a |
|
-> Vec n (f a) | Vector of signals |