bits-atomic 0.1.1 → 0.1.2
raw patch · 2 files changed
+14/−3 lines, 2 filessetup-changedPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Bits.Atomic: addAndFetch :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: addAndFetch :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: andAndFetch :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: andAndFetch :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: class Bits x => AtomicBits x
+ Data.Bits.Atomic: class (Bits x) => AtomicBits x
- Data.Bits.Atomic: compareAndSwap :: AtomicBits x => Ptr x -> x -> x -> IO x
+ Data.Bits.Atomic: compareAndSwap :: (AtomicBits x) => Ptr x -> x -> x -> IO x
- Data.Bits.Atomic: compareAndSwapBool :: AtomicBits x => Ptr x -> x -> x -> IO Bool
+ Data.Bits.Atomic: compareAndSwapBool :: (AtomicBits x) => Ptr x -> x -> x -> IO Bool
- Data.Bits.Atomic: fetchAndAdd :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: fetchAndAdd :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: fetchAndAnd :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: fetchAndAnd :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: fetchAndNand :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: fetchAndNand :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: fetchAndOr :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: fetchAndOr :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: fetchAndSub :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: fetchAndSub :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: fetchAndXor :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: fetchAndXor :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: lockRelease :: AtomicBits x => Ptr x -> IO ()
+ Data.Bits.Atomic: lockRelease :: (AtomicBits x) => Ptr x -> IO ()
- Data.Bits.Atomic: lockTestAndSet :: AtomicBits x => Ptr x -> IO x
+ Data.Bits.Atomic: lockTestAndSet :: (AtomicBits x) => Ptr x -> IO x
- Data.Bits.Atomic: nandAndFetch :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: nandAndFetch :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: orAndFetch :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: orAndFetch :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: subAndFetch :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: subAndFetch :: (AtomicBits x) => Ptr x -> x -> IO x
- Data.Bits.Atomic: xorAndFetch :: AtomicBits x => Ptr x -> x -> IO x
+ Data.Bits.Atomic: xorAndFetch :: (AtomicBits x) => Ptr x -> x -> IO x
Files
- Setup.hs +9/−2
- bits-atomic.cabal +5/−1
Setup.hs view
@@ -1,12 +1,19 @@+{-# LANGUAGE CPP #-} import Distribution.Simple import Distribution.PackageDescription import Distribution.Simple.LocalBuildInfo(LocalBuildInfo, buildDir) import System.Cmd(system)-import System.FilePath +ps :: String+#if mingw32_HOST_OS || mingw32_TARGET_OS+ps = ['\\']+#else+ps = ['/']+#endif+ main = defaultMainWithHooks hooks where hooks = simpleUserHooks { runTests = runTests' } runTests' :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO () runTests' _ _ _ lbi = system testprog >> return ()- where testprog = (buildDir lbi) </> "test" </> "test"+ where testprog = (buildDir lbi) ++ ps ++ "test" ++ ps ++ "test"
bits-atomic.cabal view
@@ -1,5 +1,5 @@ Name: bits-atomic-Version: 0.1.1+Version: 0.1.2 License: BSD3 License-File: License.txt Maintainer: Gabriel Wicke <wicke@wikidev.net>@@ -19,6 +19,10 @@ > cabal configure -ftest > cabal build > cabal test+ .+ /Recent changes/:+ .+ * 0.1.2: Avoid using System.FilePath in Setup.hs to fix build failure on hackage Category: Data, Concurrency, Foreign Stability: experimental Build-Type: Custom