chan-0.0.3: Some extra kit for Chans

Safe HaskellSafe
LanguageHaskell2010

Control.Concurrent.Chan.Typed

Documentation

newtype ChanRW (scope :: Scope) a Source #

Constructors

ChanRW (Chan a) 

readOnly :: Readable scope => ChanRW scope a -> ChanRW Read a Source #

writeOnly :: Writable scope => ChanRW scope a -> ChanRW Write 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 #