unliftio-0.2.12.1: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)

Safe HaskellSafe
LanguageHaskell2010

UnliftIO.Chan

Description

Lifted Control.Concurrent.Chan.

Since: 0.1.0.0

Synopsis

Documentation

data Chan a #

Chan is an abstract type representing an unbounded FIFO channel.

Instances
Eq (Chan a)

Since: base-4.4.0.0

Instance details

Defined in Control.Concurrent.Chan

Methods

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

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

newChan :: MonadIO m => m (Chan a) Source #

Lifted newChan.

Since: 0.1.0.0

writeChan :: MonadIO m => Chan a -> a -> m () Source #

Lifted writeChan.

Since: 0.1.0.0

readChan :: MonadIO m => Chan a -> m a Source #

Lifted readChan.

Since: 0.1.0.0

dupChan :: MonadIO m => Chan a -> m (Chan a) Source #

Lifted dupChan.

Since: 0.1.0.0

getChanContents :: MonadIO m => Chan a -> m [a] Source #

Lifted getChanContents.

Since: 0.1.0.0

writeList2Chan :: MonadIO m => Chan a -> [a] -> m () Source #

Lifted writeList2Chan.

Since: 0.1.0.0