¤ compF, >+<

Plumbing: tagged parallel composition

Types

compF :: F a b -> F c d -> F (a  c) (b  d)
>+< :: F a b -> F c d -> F (a  c) (b  d)

Synopsis

compF fl fr

Description

Fudgets composed with compF operate in parallel, indepdenetly of one another. The high level output streams from the individual fudgets are tagged and merged into a single stream. The input stream, which must be tagged, is split up and fed to the appropriate fudget.

>+< is an infix version of compF.

Input

Messages tagged Left and Right are sent to the left and right fudgets, respectively.

Output

Messages from the left and right fudgets are tagged Left and Right, respectively.

Arguments

fl :: F a b
left fudget.
fr :: F c d
right fudget.

See Also