chan-split-0.3.0: Concurrent Chans as read/write pairs. Also provides generic Chan pair class.




Chan pairs

Utility functions:

getChanContents :: OutChan a -> IO [a]Source

Return a lazy list representing the contents of the supplied OutChan, much like System.IO.hGetContents.

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 OutChan.

Supporting module