netwire-2.0.1: Generic automaton arrow transformer and useful tools
Control.Wire.Trans.Exhibit
Contents
Description
Wire transformers for handling inhibited signals.
Synopsis
event :: Arrow >~ => Wire e >~ a b -> Wire e >~ a (Maybe b)Source
Produces Just, whenever the argument wire produces, otherwise Nothing.
Just
Nothing
exhibit :: Arrow >~ => Wire e >~ a b -> Wire e >~ a (Either e b)Source
Produces Right, whenever the argument wire produces, otherwise Left with the inhibition value.
Right
Left