The IORefCAS package

[ Tags: bsd3, data, deprecated, library ] [ Propose Tags ]
Deprecated. in favor of atomic-primops

After GHC 7.2 a new casMutVar# primop became available, but was not yet exposed in Data.IORef. This package fills that gap until such a time as Data.IORef obsoletes it.

Further, in addition to exposing native Haskell CAS operations, this package contains "mockups" that imititate the same functionality using either atomicModifyIORef and unsafe pointer equality (in Data.CAS.Fake) or using foreign functions (Data.CAS.Foreign). These alternatives are useful for debugging.

Note that the foreign option does not operate on IORefs and so is directly interchangeable with Data.CAS and Data.CAS.Fake only if the interface in Data.CAS.Class is used.


Versions 0.0.1,,,, 0.2,
Dependencies base (>= && <5), bits-atomic, ghc-prim [details]
License BSD3
Author Adam C. Foltzer, Ryan Newton
Category Data
Uploaded Wed Dec 7 20:47:19 UTC 2011 by RyanNewton
Distributions NixOS:
Downloads 2958 total (66 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees