[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
241/249: gnu: Add ghc-splitmix.
From: |
guix-commits |
Subject: |
241/249: gnu: Add ghc-splitmix. |
Date: |
Thu, 31 Oct 2019 23:50:13 -0400 (EDT) |
samplet pushed a commit to branch wip-haskell-updates
in repository guix.
commit 2c4733e4c072bc7e28e836b085381143bdb174b2
Author: Timothy Sample <address@hidden>
Date: Thu Oct 31 22:59:23 2019 -0400
gnu: Add ghc-splitmix.
* gnu/packages/haskell-xyz.scm (ghc-splitmix): New variable.
(ghc-splitmix-bootstrap): New variable.
---
gnu/packages/haskell-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 22e9044..e42c32a 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -9361,6 +9361,51 @@ splitting lists into parts, akin to the @code{split}
function found in several
mainstream languages.")
(license license:bsd-3)))
+(define-public ghc-splitmix
+ (package
+ (name "ghc-splitmix")
+ (version "0.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/"
+ "splitmix/splitmix-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1k0amgkz7rvyz3lnw7m786ilnr1cibwhx9sc4qynq329gxan5r7w"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-random" ,ghc-random)))
+ (native-inputs
+ `(("ghc-hunit" ,ghc-hunit)
+ ("ghc-async" ,ghc-async)
+ ;("ghc-base-compat-batteries" ,ghc-base-compat-batteries)
+ ("ghc-tf-random" ,ghc-tf-random)
+ ("ghc-vector" ,ghc-vector)))
+ (home-page "http://hackage.haskell.org/package/splitmix")
+ (synopsis "Fast and splittable pseudorandom number generator")
+ (description "This package provides a Pure Haskell implementation of the
+SplitMix pseudorandom number generator. SplitMix is a ``splittable''
+pseudorandom number generator that is quite fast: 9 64-bit
+arithmetic/logical operations per 64 bits generated. SplitMix is tested
+with two standard statistical test suites (DieHarder and TestU01, this
+implementation only using the former) and it appears to be adequate for
+``everyday'' use, such as Monte Carlo algorithms and randomized data
+structures where speed is important. In particular, it @strong{should not
+be used for cryptographic or security applications}, because generated
+sequences of pseudorandom values are too predictable (the mixing functions
+are easily inverted, and two successive outputs suffice to reconstruct the
+internal state).")
+ (license license:bsd-3)))
+
+(define-public ghc-splitmix-bootstrap
+ (package
+ (inherit ghc-splitmix)
+ (name "ghc-splitmix-bootstrap")
+ (arguments `(#:tests? #f))
+ (native-inputs '())
+ (properties '((hidden? #t)))))
+
(define-public ghc-statevar
(package
(name "ghc-statevar")
- 218/249: gnu: ghc-validation: Update to 1.1., (continued)
- 218/249: gnu: ghc-validation: Update to 1.1., guix-commits, 2019/10/31
- 208/249: gnu: ghc-hpack: Update to 0.31.2., guix-commits, 2019/10/31
- 222/249: gnu: ghc-linear: Update to 1.20.9., guix-commits, 2019/10/31
- 217/249: gnu: ghc-lens: Update to 4.17.1., guix-commits, 2019/10/31
- 220/249: gnu: ghc-warp-tls: Update to 3.2.8., guix-commits, 2019/10/31
- 230/249: gnu: ghc-yesod-persistent: Update to 1.6.0.2., guix-commits, 2019/10/31
- 215/249: gnu: ghc-warp: Update to 3.2.28., guix-commits, 2019/10/31
- 234/249: gnu: ghc-pandoc-citeproc: Update to 0.16.2., guix-commits, 2019/10/31
- 239/249: squash! gnu: ghc-optparse-applicative: Update to 0.14.3.0., guix-commits, 2019/10/31
- 244/249: squash! gnu: ghc-quickcheck-instances: Update to 0.3.22., guix-commits, 2019/10/31
- 241/249: gnu: Add ghc-splitmix.,
guix-commits <=
- 247/249: squash! gnu: ghc-test-framework-quickcheck2: Update to 0.3.0.5., guix-commits, 2019/10/31
- 248/249: squash! gnu: ghc-hspec-core: Update to 2.7.1., guix-commits, 2019/10/31
- 110/249: gnu: ghc-validity: Update to 0.9.0.2., guix-commits, 2019/10/31
- 103/249: gnu: ghc-hspec-core: Update to 2.7.1., guix-commits, 2019/10/31
- 124/249: gnu: ghc-genvalidity-property: Update to 0.4.0.0., guix-commits, 2019/10/31
- 134/249: gnu: ghc-system-fileio: Update to 0.3.16.4., guix-commits, 2019/10/31
- 130/249: gnu: ghc-atomic-write: Update to 0.2.0.6., guix-commits, 2019/10/31
- 141/249: gnu: ghc-comonad: Update to 5.0.5., guix-commits, 2019/10/31
- 138/249: gnu: ghc-opengl: Update to 3.0.3.0., guix-commits, 2019/10/31
- 147/249: gnu: ghc-glut: Update to 2.7.0.15., guix-commits, 2019/10/31