From 9ad9ec2e6192017ccac59330c0056c370c079603 Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Sat, 12 Oct 2019 13:34:43 -0500 Subject: gnu: Add ghc-atomic-primops. * gnu/packages/haskell-xyz.scm (ghc-atomic-primops): New variable. --- gnu/packages/haskell-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/haskell-xyz.scm') diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 2977398880..e134641de4 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2019 Jacob MacDonald ;;; Copyright © 2019 John Soo ;;; Copyright © 2019 Kyle Meyer +;;; Copyright © 2019 Alex Griffin ;;; ;;; This file is part of GNU Guix. ;;; @@ -381,6 +382,28 @@ (define-public ghc-async will eventually deliver a value of type @code{a}.") (license license:bsd-3))) +(define-public ghc-atomic-primops + (package + (name "ghc-atomic-primops") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/atomic-primops" + "/atomic-primops-" version ".tar.gz")) + (sha256 + (base32 + "0cyr2x6xqz6s233znrz9rnrfj56m9bmnawwnka0lsqqy1hp8gy37")))) + (build-system haskell-build-system) + (inputs `(("ghc-primitive" ,ghc-primitive))) + (home-page "https://github.com/rrnewton/haskell-lockfree/wiki") + (synopsis "Safe approach to CAS and other atomic ops") + (description + "GHC 7.4 introduced a new @code{casMutVar} PrimOp which is difficult to +use safely, because pointer equality is a highly unstable property in Haskell. +This library provides a safer method based on the concept of @code{Ticket}s.") + (license license:bsd-3))) + (define-public ghc-atomic-write (package (name "ghc-atomic-write") -- cgit v1.2.3 From d392f8039a943b070369ecde44cfed8435ac12ad Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Sat, 12 Oct 2019 13:45:35 -0500 Subject: gnu: Add ghc-unagi-chan. * gnu/packages/haskell-xyz.scm (ghc-unagi-chan): New variable. --- gnu/packages/haskell-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/haskell-xyz.scm') diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index e134641de4..217c78a08c 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -10628,6 +10628,37 @@ (define-public ghc-typed-process upon it.") (license license:expat))) +(define-public ghc-unagi-chan + (package + (name "ghc-unagi-chan") + (version "0.4.1.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/unagi-chan" + "/unagi-chan-" version ".tar.gz")) + (sha256 + (base32 + "1lnl5n4jnjmm4chp461glcwkrrw63rjz3fvprwxcy3lkpbkrqvgn")))) + (build-system haskell-build-system) + (inputs + `(("ghc-atomic-primops" ,ghc-atomic-primops) + ("ghc-primitive" ,ghc-primitive))) + (arguments + `(#:tests? #f ; FIXME: Tests expect primitive 0.7 + #:cabal-revision + ("1" + "09pqi867wskwgc5lpn197f895mbn1174ydgllvcppcsmrz2b6yr6"))) + (home-page "http://hackage.haskell.org/package/unagi-chan") + (synopsis "Fast concurrent queues with a Chan-like API, and more") + (description + "This library provides implementations of concurrent FIFO queues (for +both general boxed and primitive unboxed values) that are fast, perform well +under contention, and offer a Chan-like interface. The library may be of +limited usefulness outside of x86 architectures where the fetch-and-add +instruction is not available.") + (license license:bsd-3))) + (define-public ghc-unbounded-delays (package (name "ghc-unbounded-delays") -- cgit v1.2.3