privileged-concurrency

Provides privilege separated versions of the concurrency primitives.

Latest on Hackage:0.6.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Jeff Shaw
Maintained by Ömer Sinan Ağacan

Any MVar or other concurrency primitive can be read by or written to any function which recieves it as a value. This package provides read-only and write-only versions of Chan, MVar, TChan, TMVar, and TVar. Functions which use these versions receive permission to read, write, or both based on their type signatures.

Changes

0.6.1

  • Added tryReadMVar for read-only MVars.

0.6

  • Write-only types are no longer Eq, but are now contravariant functors.

0.5

  • Read-only types are no longer Eq, but are now functors.

0.4

  • Functions are low lifted to MonadBase IO.

0.3

  • Initial version with read-only and write-only versions of Chan, MVar, TChan, TMVar and TVar.
comments powered byDisqus