packages feed

atomic-primops 0.8.0.3 → 0.8.0.4

raw patch · 3 files changed

+22/−7 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

Data/Atomics.hs view
@@ -437,6 +437,15 @@ -- Memory barriers -------------------------------------------------------------------------------- +-- | Memory barrier implemented by the GHC rts (see SMP.h).+-- storeLoadBarrier :: IO ()++-- | Memory barrier implemented by the GHC rts (see SMP.h).+-- loadLoadBarrier :: IO ()++-- | Memory barrier implemented by the GHC rts (see SMP.h).+-- writeBarrier :: IO ()+ -- GHC 7.8 consistently exposes these symbols while linking:  #if MIN_VERSION_base(4,7,0) && !defined(mingw32_HOST_OS)
Data/Atomics/Internal.hs view
@@ -15,15 +15,16 @@    )   where  -import GHC.Base (Int(I#))+import GHC.Base (Int(I#), Any) import GHC.Prim (RealWorld, Int#, State#, MutableArray#, MutVar#,                  unsafeCoerce#, reallyUnsafePtrEquality#)   #if MIN_VERSION_base(4,7,0)-import GHC.Prim (casArray#, casIntArray#, fetchAddIntArray#, Any, readMutVar#, casMutVar#)+import GHC.Prim (casArray#, casIntArray#, fetchAddIntArray#, readMutVar#, casMutVar#) #elif MIN_VERSION_base(4,6,0) -- Any is only supported in the FFI in the way we need in GHC 7.6+-import GHC.Prim (readMutVar#, Any, MutableByteArray#)+import GHC.Prim (readMutVar#, MutableByteArray#)+import GHC.Base (Any) #else #error "Need to figure out how to emulate Any () in GHC <= 7.4 !" -- import GHC.Prim (Word#)
atomic-primops.cabal view
@@ -1,5 +1,5 @@ Name:                atomic-primops-Version:             0.8.0.3+Version:             0.8.0.4 License:             BSD3 License-file:        LICENSE Author:              Ryan Newton@@ -35,7 +35,8 @@ -- 0.6.0.5 -- fix for GHC 7.8 -- 0.6.1   -- several bug fixes, mainly re: platform portability -- 0.8     -- support for GHC 7.10 and several new primops-+-- 0.8.0.4 -- support for GHC 8.0 series+    Synopsis: A safe approach to CAS and other atomic ops in Haskell.  Description:@@ -86,8 +87,12 @@  Changes in 0.8:  .  * Implements additional fetch primops available in GHC 7.10-+ .+ Changes in 0.8.0.4:+ .+ * Internal changes to support forthcoming GHC 8.0 +  Extra-Source-Files:  DEVLOG.md,                      testing/Test.hs, testing/test-atomic-primops.cabal, testing/ghci-test.hs                      testing/Makefile, testing/CommonTesting.hs, testing/Counter.hs, testing/CounterCommon.hs, testing/hello.hs@@ -109,7 +114,7 @@    -- casMutVar# had a bug in GHC 7.2, thus we require GHC 7.4 or greater   -- (base 4.5 or greater). We also need the "Any" kind.-  build-depends:     base >= 4.6.0.0 && < 4.9, ghc-prim, primitive+  build-depends:     base >= 4.6.0.0 && < 4.10, ghc-prim, primitive    -- TODO: Try to push support back to 7.0, but make it default to an implementation   -- other than Unboxed.