| Safe Haskell | Safe-Infered |
|---|
Control.Concurrent.Chan.Class
- class SplitChan i o | i -> o, o -> i where
- class SplitChan i o => NewSplitChan i o where
- newSplitChan :: IO (i a, o a)
Documentation
class SplitChan i o | i -> o, o -> i whereSource
A class for chan types with a "write end" and a "read end". A minimal
complete instance defines readChan and one of writeChan or
writeList2Chan.
class SplitChan i o => NewSplitChan i o whereSource
A class for SplitChan types that can be instantiated without programmer
input. e.g. the standard haskell Chan is a member of this class, however
a bounded chan type that took an Int to define the buffer size would not.
Methods
newSplitChan :: IO (i a, o a)Source
Instances