This would be fantastic and I'd be happy to work with you to expose the extra ops through the atomic-primops pkg. 

This would continue our trend of supporting gcc intrinsic style atomics (full fence, no configurabilit of the memory model a la lllvm). 

These word sized ops are most important, but ultimately there are the other sizes to support as well -- even 128 bit. 

On Sunday, May 4, 2014, Johan Tibell <johan.tibell@gmail.com> wrote:
Hi,

I found myself needing atomic operations on basic, mutable numeric values. I wrote a short design doc that I'd like feedback on:

https://ghc.haskell.org/trac/ghc/wiki/AtomicPrimops

I will try to implement these for 7.10.

-- Johan



--
Sent from Gmail Mobile