chan-0.0.4.1: Some extra kit for Chans

Safe HaskellSafe
LanguageHaskell2010

Control.Concurrent.Chan.Typed

Documentation

newtype ChanRW (scope :: Scope) a #

Constructors

ChanRW (Chan a) 
Instances
ChanScoped ChanRW # 
Instance details

Defined in Control.Concurrent.Chan.Extra

Methods

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

writeOnly :: Writable scope => ChanRW scope a -> ChanRW Write a #

allowReading :: Writable scope => ChanRW scope a -> ChanRW ReadWrite a #

allowWriting :: Readable scope => ChanRW scope a -> ChanRW ReadWrite a #

ChanExtra (ChanRW Write) (ChanRW Read) # 
Instance details

Defined in Control.Concurrent.Chan.Extra

writeChanRW :: Writable scope => ChanRW scope a -> a -> IO () #

readChanRW :: Readable scope => ChanRW scope a -> IO a #

dupChanRW :: Writable scopeIn => Readable scopeOut => ChanRW scopeIn a -> IO (ChanRW scopeOut a) #