chan-0.0.3: Some extra kit for Chans
Control.Concurrent.Chan.Typed
newtype ChanRW (scope :: Scope) a Source #
Constructors
readOnly :: Readable scope => ChanRW scope a -> ChanRW Read a Source #
writeOnly :: Writable scope => ChanRW scope a -> ChanRW Write a Source #
allowReading :: Writable scope => ChanRW scope a -> ChanRW ReadWrite a Source #
allowWriting :: Readable scope => ChanRW scope a -> ChanRW ReadWrite a Source #
newChanRW :: IO (ChanRW ReadWrite a) Source #
writeChanRW :: Writable scope => ChanRW scope a -> a -> IO () Source #
readChanRW :: Readable scope => ChanRW scope a -> IO a Source #
dupChanRW :: Writable scopeIn => Readable scopeOut => ChanRW scopeIn a -> IO (ChanRW scopeOut a) Source #