gnu: Add ghc-atomic-primops.
* gnu/packages/haskell-xyz.scm (ghc-atomic-primops): New variable.
This commit is contained in:
parent
8476e5857a
commit
9ad9ec2e61
@ -21,6 +21,7 @@
|
|||||||
;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
|
;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
|
||||||
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
|
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
|
||||||
;;; Copyright © 2019 Kyle Meyer <kyle@kyleam.com>
|
;;; Copyright © 2019 Kyle Meyer <kyle@kyleam.com>
|
||||||
|
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
@ -381,6 +382,28 @@ over threads in Haskell, in which @code{Async a} is a concurrent thread that
|
|||||||
will eventually deliver a value of type @code{a}.")
|
will eventually deliver a value of type @code{a}.")
|
||||||
(license license:bsd-3)))
|
(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
|
(define-public ghc-atomic-write
|
||||||
(package
|
(package
|
||||||
(name "ghc-atomic-write")
|
(name "ghc-atomic-write")
|
||||||
|
Loading…
Reference in New Issue
Block a user