pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hs-random Update to random-1.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf2cf68b65c9
branches:  trunk
changeset: 450877:bf2cf68b65c9
user:      pho <pho%pkgsrc.org@localhost>
date:      Fri Apr 23 06:51:27 2021 +0000

description:
Update to random-1.2.0

* Breaking change which mostly maintains backwards compatibility, see
  "Breaking Changes" below.
* Support for monadic generators e.g. mwc-random.
* Monadic adapters for pure generators (providing a uniform monadic
  interface to pure and monadic generators).
* Faster in all cases except one by more than x18 (N.B. x18 not 18%)
  and some cases (depending on the type) faster by more than x1000
* Passes a large number of random number test suites:
  - dieharder
  - TestU01 (SmallCrush, Crush, BigCrush)
  - PractRand
  - gjrand
  - See https://github.com/tweag/random-quality for details on how to
    do this yourself.
* Better quality split as judged by these tests:
  https://www.cambridge.org/core/journals/journal-of-functional-programming/article/evaluation-of-splittable-pseudorandom-generators/3EBAA9F14939C5BB5560E32D1A132637
  Again see https://github.com/tweag/random-quality for details on how
  to do this yourself.
* Unbiased generation of ranges.
* Updated tests and benchmarks.
* Continuous integration.

Breaking Changes

Version 1.2.0 introduces these breaking changes:
* requires base >= 4.8 (GHC-7.10)
* StdGen is no longer an instance of Read
* randomIO and randomRIO were extracted from the Random class into
  separate functions

In addition, there may be import clashes with new functions,
e.g. uniform and uniformR.

Deprecations

Version 1.2.0 introduces genWord64, genWord32 and similar methods to
the RandomGen class. The significantly slower method next and its
companion genRange are now deprecated.

diffstat:

 devel/hs-random/Makefile      |   5 +++--
 devel/hs-random/PLIST         |  43 +++++++++++++++++++++++++------------------
 devel/hs-random/buildlink3.mk |   6 +++---
 devel/hs-random/distinfo      |  10 +++++-----
 4 files changed, 36 insertions(+), 28 deletions(-)

diffs (100 lines):

diff -r 0bcfd2f34562 -r bf2cf68b65c9 devel/hs-random/Makefile
--- a/devel/hs-random/Makefile  Fri Apr 23 06:50:03 2021 +0000
+++ b/devel/hs-random/Makefile  Fri Apr 23 06:51:27 2021 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: Makefile,v 1.3 2014/10/21 21:27:51 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.4 2021/04/23 06:51:27 pho Exp $
 
-DISTNAME=      random-1.1
+DISTNAME=      random-1.2.0
 CATEGORIES=    devel
 
 MAINTAINER=    pho%cielonegro.org@localhost
 COMMENT=       Random number library
 LICENSE=       modified-bsd
 
+.include "../../devel/hs-splitmix/buildlink3.mk"
 .include "../../mk/haskell.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0bcfd2f34562 -r bf2cf68b65c9 devel/hs-random/PLIST
--- a/devel/hs-random/PLIST     Fri Apr 23 06:50:03 2021 +0000
+++ b/devel/hs-random/PLIST     Fri Apr 23 06:51:27 2021 +0000
@@ -1,19 +1,26 @@
-@comment $NetBSD: PLIST,v 1.3 2020/05/11 17:52:06 rillig Exp $
-${HS_INTF}/package-description
-${HS_INTF}/package-id
+@comment $NetBSD: PLIST,v 1.4 2021/04/23 06:51:27 pho Exp $
+lib/random-${PKGVERSION}/${HS_VERSION}/package-description
+lib/random-${PKGVERSION}/${HS_VERSION}/package-id
 lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
-${HS_IMPL}/System/Random.dyn_hi
-${HS_IMPL}/System/Random.hi
-${HS_IMPL}/System/Random.p_hi
-${HS_IMPL}/libHS${HS_PKGID}.a
-${HS_IMPL}/libHS${HS_PKGID}_p.a
-${HS_DOCS}/LICENSE
-${HS_DOCS}/html/System-Random.html
-${HS_DOCS}/html/doc-index.html
-${HS_DOCS}/html/haddock-bundle.min.js
-${HS_DOCS}/html/index.html
-${HS_DOCS}/html/linuwial.css
-${HS_DOCS}/html/meta.json
-${HS_DOCS}/html/quick-jump.css
-${HS_DOCS}/html/random.haddock
-${HS_DOCS}/html/synopsis.png
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/Internal.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/Internal.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/Internal.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/Stateful.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/Stateful.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/Stateful.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/System-Random-Stateful.html
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/System-Random.html
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/random.haddock
+share/doc/${HS_PLATFORM}/random-${PKGVERSION}/html/synopsis.png
diff -r 0bcfd2f34562 -r bf2cf68b65c9 devel/hs-random/buildlink3.mk
--- a/devel/hs-random/buildlink3.mk     Fri Apr 23 06:50:03 2021 +0000
+++ b/devel/hs-random/buildlink3.mk     Fri Apr 23 06:51:27 2021 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.4 2018/01/07 13:04:04 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2021/04/23 06:51:27 pho Exp $
 
 BUILDLINK_TREE+=       hs-random
 
 .if !defined(HS_RANDOM_BUILDLINK3_MK)
 HS_RANDOM_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-random+=      hs-random>=1.1
-BUILDLINK_ABI_DEPENDS.hs-random+=      hs-random>=1.1
+BUILDLINK_API_DEPENDS.hs-random+=      hs-random>=1.2.0
+BUILDLINK_ABI_DEPENDS.hs-random+=      hs-random>=1.2.0
 BUILDLINK_PKGSRCDIR.hs-random?=                ../../devel/hs-random
 .endif # HS_RANDOM_BUILDLINK3_MK
 
diff -r 0bcfd2f34562 -r bf2cf68b65c9 devel/hs-random/distinfo
--- a/devel/hs-random/distinfo  Fri Apr 23 06:50:03 2021 +0000
+++ b/devel/hs-random/distinfo  Fri Apr 23 06:51:27 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 03:27:33 agc Exp $
+$NetBSD: distinfo,v 1.5 2021/04/23 06:51:27 pho Exp $
 
-SHA1 (random-1.1.tar.gz) = 1cc4907296f83e54587b8aa73e62cd87a7755ca0
-RMD160 (random-1.1.tar.gz) = 483867e6a218fd5aee0ed5156c81b90169de9fd1
-SHA512 (random-1.1.tar.gz) = 7f128b1c88adfe7ee6405578d3c999bb77e9e3c21e16f82a5197c0ad1d6731851e99e08d8169c6a8b1068ad8a1614c1c0ef8c04c1958337a6e325f1de0c718a3
-Size (random-1.1.tar.gz) = 10870 bytes
+SHA1 (random-1.2.0.tar.gz) = 17ab0936460ff825d50268daa2a2a9fafacfe698
+RMD160 (random-1.2.0.tar.gz) = a3ee060e6a3edab13d482ce264b81511a22ac8bb
+SHA512 (random-1.2.0.tar.gz) = e482f318c245d87824d440885c4ecbd1c9bd85a3b3aa4d7fbb4a82da0cfd31749caa9ff7881c94b731035133fd1d550a0cb8bd4da958d3c72519bddcadc6c2e5
+Size (random-1.2.0.tar.gz) = 37889 bytes



Home | Main Index | Thread Index | Old Index