[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/39: gnu: Add ghc-mwc-random.
From: |
Ludovic Courtès |
Subject: |
05/39: gnu: Add ghc-mwc-random. |
Date: |
Sun, 22 Oct 2017 18:32:40 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1a2a247bcece6b2787893b0cd3d93b75be5766af
Author: rsiddharth <address@hidden>
Date: Wed Oct 18 03:07:25 2017 +0000
gnu: Add ghc-mwc-random.
* gnu/packages/haskell.scm (ghc-mwc-random): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/haskell.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 0cc0d13..2959b25 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9108,4 +9108,43 @@ special mathematical functions and Chebyshev
polynomials. These
functions are often useful in statistical and numerical computing.")
(license license:bsd-3)))
+(define-public ghc-mwc-random
+ (package
+ (name "ghc-mwc-random")
+ (version "0.13.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/"
+ "mwc-random-" version "/"
+ "mwc-random-" version ".tar.gz"))
+ (sha256
+ (base32
+ "05j7yh0hh9nxic3dijmzv44kc6gzclvamdph7sq7w19wq57k6pq6"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-primitive" ,ghc-primitive)
+ ("ghc-vector" ,ghc-vector)
+ ("ghc-math-functions" ,ghc-math-functions)))
+ (arguments
+ `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
+ (native-inputs
+ `(("ghc-hunit" ,ghc-hunit)
+ ("ghc-quickcheck" ,ghc-quickcheck)
+ ("ghc-test-framework" ,ghc-test-framework)
+ ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
+ ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
+ (home-page "https://github.com/bos/mwc-random")
+ (synopsis "Random number generation library for Haskell")
+ (description "This Haskell package contains code for generating
+high quality random numbers that follow either a uniform or normal
+distribution. The generated numbers are suitable for use in
+statistical applications.
+
+The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
+multiply-with-carry generator, which has a period of 2^{8222} and
+fares well in tests of randomness. It is also extremely fast,
+between 2 and 3 times faster than the Mersenne Twister.")
+ (license license:bsd-3)))
+
;;; haskell.scm ends here
- branch master updated (ef7dd2e -> ed9b09e), Ludovic Courtès, 2017/10/22
- 01/39: gnu: Add ghc-errors., Ludovic Courtès, 2017/10/22
- 02/39: gnu: Add ghc-vector-th-unbox., Ludovic Courtès, 2017/10/22
- 04/39: gnu: Add ghc-math-functions., Ludovic Courtès, 2017/10/22
- 05/39: gnu: Add ghc-mwc-random.,
Ludovic Courtès <=
- 09/39: gnu: Add ghc-abstract-par., Ludovic Courtès, 2017/10/22
- 07/39: gnu: Add ghc-language-haskell-extract., Ludovic Courtès, 2017/10/22
- 11/39: gnu: Add ghc-abstract-deque., Ludovic Courtès, 2017/10/22
- 06/39: gnu: Add ghc-vector-algorithms., Ludovic Courtès, 2017/10/22
- 13/39: gnu: ghc-base-orphans: Update to 0.6., Ludovic Courtès, 2017/10/22
- 10/39: gnu: Add ghc-monad-par-extras., Ludovic Courtès, 2017/10/22
- 08/39: gnu: Add ghc-test-framework-th., Ludovic Courtès, 2017/10/22
- 18/39: gnu: Add ghc-contravariant-extras., Ludovic Courtès, 2017/10/22
- 03/39: gnu: Add ghc-erf., Ludovic Courtès, 2017/10/22
- 21/39: gnu: Add ghc-entropy., Ludovic Courtès, 2017/10/22