Portability | Rank-2 Types, GADTs |
---|---|

Stability | provisional |

Maintainer | Edward Kmett <ekmett@gmail.com> |

Safe Haskell | None |

- type Wye a b c = Machine Y (a, b) c
- type WyeT m a b c = MachineT m Y (a, b) c
- data Y i c where
- wye :: Monad m => ProcessT m a a' -> ProcessT m b b' -> WyeT m a' b' c -> WyeT m a b c
- addX :: Monad m => ProcessT m a b -> WyeT m b c d -> WyeT m a c d
- addY :: Monad m => ProcessT m b c -> WyeT m a c d -> WyeT m a b d
- capX :: Monad m => SourceT m a -> WyeT m a b c -> ProcessT m b c
- capY :: Monad m => SourceT m b -> WyeT m a b c -> ProcessT m a c

# Wyes

type Wye a b c = Machine Y (a, b) cSource

A `Machine`

that can read from two input stream in a non-deterministic manner.

type WyeT m a b c = MachineT m Y (a, b) cSource

A `Machine`

that can read from two input stream in a non-deterministic manner with monadic side-effects.

addX :: Monad m => ProcessT m a b -> WyeT m b c d -> WyeT m a c dSource

Precompose a pipe onto the left input of a wye.

addY :: Monad m => ProcessT m b c -> WyeT m a c d -> WyeT m a b dSource

Precompose a pipe onto the right input of a tee.