[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31582] [PATCH 5/8] gnu: Add ghc-safesemaphore.
From: |
Timothy Sample |
Subject: |
[bug#31582] [PATCH 5/8] gnu: Add ghc-safesemaphore. |
Date: |
Thu, 24 May 2018 19:27:07 -0000 |
* gnu/packages/haskell.scm (ghc-safesemaphore): New variable.
---
gnu/packages/haskell.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 2c0b66396..6860c42c3 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1938,6 +1938,30 @@ case with other forms of concurrent communication, such
as locks or
"This package provides a library for parallel programming.")
(license license:bsd-3)))
+(define-public ghc-safesemaphore
+ (package
+ (name "ghc-safesemaphore")
+ (version "0.10.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/"
+ "SafeSemaphore/SafeSemaphore-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0rpg9j6fy70i0b9dkrip9d6wim0nac0snp7qzbhykjkqlcvvgr91"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-stm" ,ghc-stm)))
+ (native-inputs
+ `(("ghc-hunit" ,ghc-hunit)))
+ (home-page "https://github.com/ChrisKuklewicz/SafeSemaphore")
+ (synopsis "Exception safe semaphores")
+ (description "This library provides exception safe semaphores that can be
+used in place of @code{QSem}, @code{QSemN}, and @code{SampleVar}, all of which
+are not exception safe and can be broken by @code{killThread}.")
+ (license license:bsd-3)))
+
(define-public ghc-text
(package
(name "ghc-text")
--
2.17.0
- [bug#31582] [PATCH 1/8] gnu: Add ghc-bloomfilter., (continued)
[bug#31582] [PATCH 5/8] gnu: Add ghc-safesemaphore.,
Timothy Sample <=
[bug#31582] [PATCH 0/8] git-annex, Christopher Lemmer Webber, 2018/05/29