chan-split-0.1.2: Concurrent Chans as read/write pairs. Also provides generic Chan, Cofunctor classes.

Control.Concurrent.Chan.Class

Synopsis

Documentation

class WritableChan c whereSource

A class for Chan types that can be written to. A minimum complete instance defines one of writeList2Chan or writeChan

Methods

writeList2Chan :: c a -> [a] -> IO ()Source

Write an entire list of items to a chan type

writeChan :: c a -> a -> IO ()Source

Write a value to a Chan type.

class ReadableChan c whereSource

A class for Chan types that can be read from.

Methods

readChan :: c a -> IO aSource

Read the next value from the OutChan.