packages feed

atomic-counter 0.1.2.3 → 0.1.2.4

raw patch · 5 files changed

+15/−4 lines, 5 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Control.Concurrent.Counter.Unlifted: data Counter s
+ Control.Concurrent.Counter.Unlifted: data Counter s :: UnliftedType

Files

Changelog.md view
@@ -1,3 +1,7 @@+# 0.1.2.4++- Add `@since` Haddock annotations+ # 0.1.2.3  - Remove internal ‘test-utils’ library which wasn’t supposed to be used by clients anyway but was confusing cabal dependency resolution@@ -25,4 +29,4 @@  # 0.1 -Initial release+- Initial release
atomic-counter.cabal view
@@ -5,7 +5,7 @@ name:   atomic-counter version:-  0.1.2.3+  0.1.2.4 synopsis:   Mutable counters that can be modified with atomic operatinos @@ -39,12 +39,13 @@   GHC == 9.4,   GHC == 9.6,   GHC == 9.8,-  GHC == 9.10+  GHC == 9.10,+  GHC == 9.12,  build-type:   Simple -extra-source-files:+extra-doc-files:   Changelog.md   Readme.md 
src/Control/Concurrent/Counter/Lifted/IO.hs view
@@ -71,6 +71,8 @@ -- | Atomic compare and swap, i.e. write the new value if the current -- value matches the provided old value. Returns the value of the -- element before the operation+--+-- @since 0.1.2 cas   :: Counter   -> Int -- ^ Expected old value
src/Control/Concurrent/Counter/Lifted/ST.hs view
@@ -80,6 +80,8 @@ -- | Atomic compare and swap, i.e. write the new value if the current -- value matches the provided old value. Returns the value of the -- element before the operation+--+-- @since 0.1.2 cas   :: Counter s   -> Int -- ^ Expected old value
src/Control/Concurrent/Counter/Unlifted.hs view
@@ -108,6 +108,8 @@ -- | Atomic compare and swap, i.e. write the new value if the current -- value matches the provided old value. Returns the value of the -- element before the operation+--+-- @since 0.1.2 foreign import prim "stg_casCounterzh"   cas :: Counter s -> Int# -> Int# -> State# s -> (# State# s, Int# #)