Chan

data Chan a
base Control.Concurrent.Chan
Chan is an abstract type representing an unbounded FIFO channel.
module Control.Concurrent.Chan
base Control.Concurrent.Chan
Unbounded channels.
package chan-split
package
A wrapper around Control.Concurrent.Chan that splits a Chan into a pair, one of which allows only read operations, the other write operations. This makes code easier to reason about, allows us to define useful instances (Functor and Contravariant) on the chan pairs. In addition this package provides a module that defines a pair of classes ReadableChan and WritableChan which defines the basic methods any Chan type should provide. To use standard Chans with these polymorphic functions, import as follows: > import Control.Concurrent.Chan hiding (readChan,writeChan,writeList2Chan) > import Control.Concurrent.Chan.Class When used alongside standard Chans, the Split module can be imported qualified like: > import qualified Control.Concurrent.Chan.Split as S Note, we do not implement the deprecated unGetChan and isEmptyChan functions. This module is used internally by the "simple-actors" package. CHANGES: 0.1.3 -> 0.2.0 - get Cofunctor from "contravariant" package - redefine chan pair classes using fundeps to express the relationship between input and output halfs of a Chan - define NewSplitChan class for chan pairs that can be instantiated Version 0.3.0
package change-monger
package
change-monger is intended to allow you to extract the revision history from various VCSes like Darcs, and save them as a ChangeLog; particularly important is being able to extract the summaries for all patches since the last release. Version 0.0
class CHANGEATTRS a
xhtml Text.XHtml.Strict, xhtml Text.XHtml.Frameset, xhtml Text.XHtml.Transitional
CHANGEATTRS is a more expressive alternative to ADDATTRS
changeAttrs :: CHANGEATTRS a => a -> ([HtmlAttr] -> [HtmlAttr]) -> a
xhtml Text.XHtml.Strict, xhtml Text.XHtml.Frameset, xhtml Text.XHtml.Transitional
changeWorkingDirectory :: FilePath -> IO ()
unix System.Posix.Directory
changeWorkingDirectory dir calls chdir to change the current working directory to dir.
changeWorkingDirectory :: RawFilePath -> IO ()
unix System.Posix.Directory.ByteString
changeWorkingDirectory dir calls chdir to change the current working directory to dir.
changeWorkingDirectoryFd :: Fd -> IO ()
unix System.Posix.Directory.ByteString, unix System.Posix.Directory
dupChan :: Chan a -> IO (Chan a)
base Control.Concurrent.Chan
Duplicate a Chan: the duplicate channel begins empty, but data written to either channel from then on will be available from both. Hence this creates a kind of broadcast channel, anyone is seen by everyone else.
getChanContents :: Chan a -> IO [a]
base Control.Concurrent.Chan
Return a lazy list representing the contents of the supplied Chan, much like System.IO.hGetContents.
isEmptyChan :: Chan a -> IO Bool
base Control.Concurrent.Chan
Returns True if the supplied Chan is empty.
newChan :: IO (Chan a)
base Control.Concurrent.Chan
Build and returns a new instance of Chan.
readChan :: Chan a -> IO a
base Control.Concurrent.Chan
Read the next value from the Chan.
unGetChan :: Chan a -> a -> IO ()
base Control.Concurrent.Chan
Put a data item back onto a channel, read.
writeChan :: Chan a -> a -> IO ()
base Control.Concurrent.Chan
Write a value to a Chan.
writeList2Chan :: Chan a -> [a] -> IO ()
base Control.Concurrent.Chan
Write an entire list of items to a Chan.
package bounded-tchan
package
Bounded TChan's, or BTChan's, are a transactional queue with a limit to the number of elements (further calls to writeBTChan or unGetBTChan call STM retry).  Users are strongly encouraged to consider using the more complete 'stm-chans' packages, which includes a bounded TChan designed on this package. Version 0.2.3
package BoundedChan
package
This library introduces BoundedChan. BoundedChans differ from Chans in that they are guaranteed to contain no more than a certain number of elements. Version 1.0.1.0
module Control.Concurrent.STM.TChan
stm Control.Concurrent.STM.TChan
TChan: Transactional channels (GHC only)

Show more results