For flavour, the computation involves hoisting and lifting back and forth over several layers, as the various meta-physical wires cross.  That was years ago, but I haven't seen anything since.  It looks like Pipes is the wrong abstraction point to stream with branching.  I wonder what is?

Machines? https://hackage.haskell.org/package/machines

Alan