[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/28: gnu: Add ghc-concurrent-extra.
From: |
guix-commits |
Subject: |
28/28: gnu: Add ghc-concurrent-extra. |
Date: |
Thu, 1 Aug 2019 12:14:07 -0400 (EDT) |
rob pushed a commit to branch wip-haskell-updates
in repository guix.
commit 8719e8fa31f06ea9e745353112a8aa81e0840d9b
Author: Robert Vollmert <address@hidden>
Date: Mon Jul 15 10:50:58 2019 +0200
gnu: Add ghc-concurrent-extra.
* gnu/packages/haskell-xyz.scm (ghc-concurrent-extra): New package.
---
gnu/packages/haskell-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index f8a063a..37ff8c1 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -259,3 +259,49 @@ The advantages of this package are:
* Correct handling of asynchronous exceptions.
* GHC specific functionality like forkOn and forkIOWithUnmask.")
(license license:bsd-3)))
+
+(define-public ghc-concurrent-extra
+ (package
+ (name "ghc-concurrent-extra")
+ (version "0.7.0.12")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+
"https://hackage.haskell.org/package/concurrent-extra/concurrent-extra-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1y8xk460fvnw0idzdiylmm874sjny4q9jxb1js9fjz8lw2wns3h4"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-unbounded-delays" ,ghc-unbounded-delays)))
+ (native-inputs
+ `(("ghc-hunit" ,ghc-hunit)
+ ("ghc-random" ,ghc-random)
+ ("ghc-test-framework" ,ghc-test-framework)
+ ("ghc-test-framework-hunit"
+ ,ghc-test-framework-hunit)
+ ("ghc-async" ,ghc-async)))
+ (home-page
+ "https://github.com/basvandijk/concurrent-extra")
+ (synopsis "Extra concurrency primitives")
+ (description
+ "The concurrent-extra package offers among other things the following
+selection of synchronisation primitives:
+* Broadcast: Wake multiple threads by broadcasting a value.
+* Event: Wake multiple threads by signalling an event.
+* Lock: Enforce exclusive access to a resource. Also known as a binary
+semaphore or mutex. The package additionally provides an alternative that
+works in the STM monad.
+* RLock: A lock which can be acquired multiple times by the same thread.
+Also known as a reentrant mutex.
+* ReadWriteLock: Multiple-reader, single-writer locks. Used to protect
+shared resources which may be concurrently read, but only sequentially
+written.
+* ReadWriteVar: Concurrent read, sequential write variables.
+Please consult the API documentation of the individual modules for more
+detailed information.
+This package was inspired by the concurrency libraries of Java and Python.")
+ (license license:bsd-3)))
- 14/28: gnu: ghc-trifecta: Disable tests., (continued)
- 14/28: gnu: ghc-trifecta: Disable tests., guix-commits, 2019/08/01
- 09/28: gnu: Remove ghc-regex-tdfa-rc., guix-commits, 2019/08/01
- 26/28: gnu: Add ghc-prettyclass., guix-commits, 2019/08/01
- 03/28: gnu: Remove ghc-parsec, ghc-stm, ghc-text, ghc-xhtml., guix-commits, 2019/08/01
- 06/28: Revert "gnu: ghc-ansi-terminal: Update to 0.9.1.", guix-commits, 2019/08/01
- 07/28: gnu: ghc-concurrent-output: Downgrade to 1.10.9., guix-commits, 2019/08/01
- 05/28: gnu: ghc-hedgehog: Use ghc-ansi-terminal., guix-commits, 2019/08/01
- 01/28: gnu: Add ghc-8.6., guix-commits, 2019/08/01
- 11/28: gnu: Remove ghc-packedstring., guix-commits, 2019/08/01
- 13/28: gnu: ghc-yaml: Disable tests., guix-commits, 2019/08/01
- 28/28: gnu: Add ghc-concurrent-extra.,
guix-commits <=
- 12/28: gnu: ghc-libmpd-haskell: Disable tests., guix-commits, 2019/08/01
- 10/28: gnu: Remove ghc-haddock-test., guix-commits, 2019/08/01
- 17/28: gnu: Add ghc-http-streams., guix-commits, 2019/08/01
- 16/28: gnu: Add ghc-snap-server., guix-commits, 2019/08/01
- 24/28: gnu: Add ghc-zlib-bindings., guix-commits, 2019/08/01
- 20/28: gnu: Add ghc-openssl-streams., guix-commits, 2019/08/01
- 21/28: gnu: Add ghc-language-glsl., guix-commits, 2019/08/01
- 15/28: gnu: Add ghc-snap-core., guix-commits, 2019/08/01
- 19/28: gnu: Add ghc-hsopenssl., guix-commits, 2019/08/01
- 27/28: gnu: Add ghc-threads., guix-commits, 2019/08/01