compEitherSP :: SP a1 a2 -> SP a3 b -> SP (a1 ⊕ a3) (a2 ⊕ b) -+- :: SP a1 a2 -> SP a3 b -> SP (a1 ⊕ a3) (a2 ⊕ b) compMsgSP :: SP a1 a2 -> SP a3 b -> SP (Message a1 a3) (Message a2 b)
compEitherSP sp1 sp2
data Message a b = Low a | High b
The description below is for compEitherSP
. compMsgSP
is the same,
except that it uses the type Message
instead of Either
.
Left
and Right
are sent to the left and right
stream processors, respectively.
Left
and Right
, respectively.
sp1 :: SP a1 a2
sp2 :: SP a3 b
The corresponding fudget combinator: >+<.
Serial composition: serCompSP.