[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28884] [PATCH 05/38] gnu: Add ghc-mwc-random.
From: |
rsiddharth |
Subject: |
[bug#28884] [PATCH 05/38] gnu: Add ghc-mwc-random. |
Date: |
Wed, 18 Oct 2017 03:07:25 +0000 |
* gnu/packages/haskell.scm (ghc-mwc-random): New variable.
---
gnu/packages/haskell.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 4d3f46598..df6a27dc2 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9107,4 +9107,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
--
2.15.0.rc0
- [bug#28884] [PATCH 00/38] Add ghc-aws and its dependencies., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 01/38] gnu: Add ghc-errors., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 04/38] gnu: Add ghc-math-functions., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 03/38] gnu: Add ghc-erf., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 02/38] gnu: Add ghc-vector-th-unbox., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 09/38] gnu: Add ghc-abstract-par., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 07/38] gnu: Add ghc-language-haskell-extract., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 05/38] gnu: Add ghc-mwc-random.,
rsiddharth <=
- [bug#28884] [PATCH 06/38] gnu: Add ghc-vector-algorithms., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 08/38] gnu: Add ghc-test-framework-th., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 11/38] gnu: Add ghc-abstract-deque., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 12/38] gnu: Add ghc-monad-par., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 10/38] gnu: Add ghc-monad-par-extras., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 13/38] gnu: ghc-base-orphans: Update to 0.6., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 15/38] gnu: Add ghc-chunked-data., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 14/38] gnu: Add ghc-statistics., rsiddharth, 2017/10/17
- [bug#28884] [PATCH 21/38] gnu: Add ghc-entropy., rsiddharth, 2017/10/17