chan-split-0.1.2: Concurrent Chans as read/write pairs. Also provides generic
Chan, Cofunctor classes.
newSplitChan :: IO (InChan a, OutChan a)Source
Create corresponding read and write ends of a chan pair. Writes to the
InChan side can be read on the OutChan side.
data InChan i Source
The write side of a chan pair
data OutChan o Source
The read side of a chan pair
getChanContents :: OutChan a -> IO [a]Source
Return a lazy list representing the contents of the supplied OutChan, much
dupChan :: OutChan a -> IO (OutChan a)Source
Duplicate an OutChan: the duplicate channel begins empty, but data
written to the corresponding InChan will appear in both, i.e. consuming a
value from the copy will have no affect on the values in the original
Produced by Haddock version 2.9.2