chp-spec-1.0.0: A mirror implementation of chp that generates a specification of the program

Control.Concurrent.CHPSpec.Channels.Communication

Synopsis

Documentation

class ReadableChannel chanEnd whereSource

Methods

readChannel :: chanEnd a -> CHP aSource

extReadChannel :: chanEnd a -> (a -> CHP b) -> CHP bSource

Currently, extended inputs and outputs are modelled (incorrectly) as standard inputs and outputs.

class WriteableChannel chanEnd whereSource

Methods

writeChannel :: chanEnd a -> a -> CHP ()Source

extWriteChannel :: chanEnd a -> CHP a -> CHP ()Source

Currently, extended inputs and outputs are modelled (incorrectly) as standard inputs and outputs.

extWriteChannel' :: chanEnd a -> CHP (a, b) -> CHP bSource

Currently, extended inputs and outputs are modelled (incorrectly) as standard inputs and outputs.

writeValue :: WriteableChannel chanEnd => a -> chanEnd a -> CHP ()Source

writeChannelStrict :: (NFData a, WriteableChannel chanEnd) => chanEnd a -> a -> CHP ()Source

This function strictly evaluates its second argument and then behaves like writeChannel.