rhine-0.4.0.1: Functional Reactive Programming with type-level clocks
FRP.Rhine.Clock.Step
Synopsis
data Step (n :: Nat) where Source #
A pure (side effect free) clock ticking at multiples of n. The tick rate is in the type signature, which prevents composition of signals at different rates.
n
Constructors
Instances
Associated Types
type TimeDomainOf (Step n) :: * Source #
type Tag (Step n) :: * Source #
Methods
startClock :: Step n -> m (MSF m () (TimeDomainOf (Step n), Tag (Step n)), TimeDomainOf (Step n)) Source #
stepsize :: Step n -> Integer Source #
Extract the type-level natural number as an integer.
scheduleStep :: Monad m => Schedule m (Step n1) (Step n2) Source #
Two Step clocks can always be scheduled without side effects.
Step