netwire-2.0.1: Generic automaton arrow transformer and useful tools

MaintainerErtugrul Soeylemez <es@ertes.de>

Control.Wire.Prefab.Sample

Contents

Description

Signal sampling wires.

Synopsis

Simple samplers

discrete :: forall b e t (>~). (ArrowClock >~, Num t, Ord t, Time >~ ~ t) => Wire e >~ (t, b) bSource

Sample the right signal at discrete intervals given by the left input signal.

  • Depends: Current instant (left), last sampling instant (right).

keep :: Wire e >~ b bSource

Keep the signal in the first instant forever.

  • Depends: First instant.