[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/28: gnu: Add ghc-concurrent-extra.
From: |
guix-commits |
Subject: |
11/28: gnu: Add ghc-concurrent-extra. |
Date: |
Wed, 7 Aug 2019 23:28:31 -0400 (EDT) |
samplet pushed a commit to branch master
in repository guix.
commit efb96749a2af02d59f341db033e87082f9289705
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 variable.
---
gnu/packages/haskell-xyz.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 17736c9..a03ea4c 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -18,11 +18,64 @@
(define-module (gnu packages haskell-xyz)
#:use-module (gnu packages)
+ #:use-module (gnu packages haskell)
+ #:use-module (gnu packages haskell-check)
#:use-module (guix build-system haskell)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages))
+(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)
+ (arguments
+ ;; XXX: The ReadWriteLock 'stressTest' fails.
+ `(#:tests? #f))
+ (inputs
+ `(("ghc-unbounded-delays" ,ghc-unbounded-delays)))
+ (native-inputs
+ `(("ghc-async" ,ghc-async)
+ ("ghc-hunit" ,ghc-hunit)
+ ("ghc-random" ,ghc-random)
+ ("ghc-test-framework" ,ghc-test-framework)
+ ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
+ (home-page "https://github.com/basvandijk/concurrent-extra")
+ (synopsis "Extra concurrency primitives")
+ (description "This Haskell library offers (among other things) the
+following selection of synchronisation primitives:
+
+@itemize
+@item @code{Broadcast}: Wake multiple threads by broadcasting a value.
+@item @code{Event}: Wake multiple threads by signalling an event.
+@item @code{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.
+@item @code{RLock}: A lock which can be acquired multiple times by the
+same thread. Also known as a reentrant mutex.
+@item @code{ReadWriteLock}: Multiple-reader, single-writer locks. Used
+to protect shared resources which may be concurrently read, but only
+sequentially written.
+@item @code{ReadWriteVar}: Concurrent read, sequential write variables.
+@end itemize
+
+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)))
+
(define-public ghc-language-glsl
(package
(name "ghc-language-glsl")
- 07/28: gnu: ghc-validation: Downgrade to 1., (continued)
- 07/28: gnu: ghc-validation: Downgrade to 1., guix-commits, 2019/08/07
- 02/28: gnu: Add ghc-8.6., guix-commits, 2019/08/07
- 03/28: import: hackage: Update list of ghc-included packages., guix-commits, 2019/08/07
- 06/28: gnu: ghc-concurrent-output: Downgrade to 1.10.9., guix-commits, 2019/08/07
- 10/28: gnu: Add ghc-language-glsl., guix-commits, 2019/08/07
- 12/28: gnu: Add ghc-readable., guix-commits, 2019/08/07
- 15/28: gnu: Add ghc-io-streams., guix-commits, 2019/08/07
- 22/28: gnu: Add ghc-snap-server., guix-commits, 2019/08/07
- 08/28: gnu: ghc-ansi-terminal: Downgrade to 0.8.0.4., guix-commits, 2019/08/07
- 09/28: gnu: Add ghc-prettyclass., guix-commits, 2019/08/07
- 11/28: gnu: Add ghc-concurrent-extra.,
guix-commits <=
- 17/28: gnu: Add ghc-hsopenssl., guix-commits, 2019/08/07
- 13/28: gnu: Add ghc-threads., guix-commits, 2019/08/07
- 14/28: gnu: Add ghc-zlib-bindings., guix-commits, 2019/08/07
- 18/28: gnu: Add ghc-openssl-streams., guix-commits, 2019/08/07
- 21/28: gnu: Add ghc-snap-core., guix-commits, 2019/08/07
- 26/28: gnu: ghc-libmpd-haskell: Disable tests., guix-commits, 2019/08/07
- 28/28: gnu: ghc-trifecta: Disable tests., guix-commits, 2019/08/07
- 20/28: gnu: Add ghc-http-streams., guix-commits, 2019/08/07
- 24/28: gnu: Remove ghc-haddock-test., guix-commits, 2019/08/07
- 25/28: gnu: Remove ghc-packedstring., guix-commits, 2019/08/07