forward-chan-0.0.0.0: Concurrent channels with a forwarding primitive

Safe HaskellNone
LanguageHaskell98

Control.Concurrent.Chan.Forwardable.Internals

Synopsis

Documentation

data Chan a Source #

A forwardable channel. It supports all the standard channel operations as layed out in the base library (as of 4.10.0.0) except dupChan

Constructors

Chan 

Fields

  • inChan :: IORef (InChan (IO a))

    a reference to an in-channel of actions that output the value. Warning: custom playing with these internals is likely to break forward's nice properties.

  • outChan :: IORef (OutChan (IO a))

    a reference to an out-channel of actions that output the value.

Instances

Eq (Chan a) Source # 

Methods

(==) :: Chan a -> Chan a -> Bool #

(/=) :: Chan a -> Chan a -> Bool #