unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Timothy Sample <samplet@ngyro.com>
To: 31582@debbugs.gnu.org
Subject: [bug#31582] [PATCH 5/8] gnu: Add ghc-safesemaphore.
Date: Tue, 20 Feb 2018 00:25:04 -0500	[thread overview]
Message-ID: <87y3g8svoz.fsf@mrblack.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <878t88vp2n.fsf@ngyro.com>

* 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

  parent reply	other threads:[~2018-05-24 19:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-24 19:19 [bug#31582] [PATCH 0/8] git-annex Timothy Sample
2018-02-19 17:58 ` [bug#31582] [PATCH 1/8] gnu: Add ghc-bloomfilter Timothy Sample
2018-05-29  4:08   ` Christopher Lemmer Webber
2018-02-20  0:07 ` [bug#31582] [PATCH 2/8] gnu: Add ghc-feed Timothy Sample
2018-02-20  0:08 ` [bug#31582] [PATCH 3/8] gnu: Add ghc-ifelse Timothy Sample
2018-02-20  5:12 ` [bug#31582] [PATCH 4/8] gnu: Add ghc-esqueleto Timothy Sample
2018-02-20  5:25 ` Timothy Sample [this message]
2018-02-20  7:56 ` [bug#31582] [PATCH 6/8] gnu: ghc-psqueues: Allow building with newer versions of QuickCheck Timothy Sample
2018-02-21  4:13 ` [bug#31582] [PATCH 7/8] gnu: Add ghc-disk-free-space Timothy Sample
2018-02-21  4:15 ` [bug#31582] [PATCH 8/8] gnu: Add git-annex Timothy Sample
2018-05-29  4:13   ` Christopher Lemmer Webber
2018-05-29 13:45     ` Christopher Lemmer Webber
2018-05-29 14:55       ` Timothy Sample
2018-02-19 17:58         ` [bug#31582] [PATCH v2 1/8] gnu: Add ghc-bloomfilter Timothy Sample
2018-05-29 16:07         ` [bug#31582] [PATCH v2 8/8] gnu: Add git-annex Timothy Sample
2018-06-01  8:36           ` bug#31582: " Ludovic Courtès
2018-05-29  4:11 ` [bug#31582] [PATCH 0/8] git-annex Christopher Lemmer Webber
2018-06-01 17:26 ` [bug#31582] git-annex make install Joey Hess
2018-06-01 20:12   ` Timothy Sample
2018-06-01 21:00     ` Joey Hess

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3g8svoz.fsf@mrblack.i-did-not-set--mail-host-address--so-tickle-me \
    --to=samplet@ngyro.com \
    --cc=31582@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).