netwire-2.0.1: Generic automaton arrow transformer and useful tools

MaintainerErtugrul Soeylemez <es@ertes.de>

Control.Wire.Session

Contents

Description

Wire sessions, i.e. running and/or testing wires.

Synopsis

Running wires

stepWireSource

Arguments

:: Arrow >~ 
=> Wire e >~ a b

Wire to step.

-> a >~ (Either e b, Wire e >~ a b) 

Performs an instant of the given wire.

Testing wires

testWireSource

Arguments

:: forall a e (>~) . (ArrowApply >~, ArrowIO >~, Show e) 
=> Int

Frames per output. FPS/accuracy tradeoff.

-> (() >~ a)

Input generator.

-> Wire e >~ a String >~ () 

Test a wire. This function runs the given wire continuously printing its output on a single line.