pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-MonadRandom Update to MonadRandom-0.5.1.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e4ab1f4b76a9
branches:  trunk
changeset: 420177:e4ab1f4b76a9
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed Jan 01 03:33:07 2020 +0000

description:
Update to MonadRandom-0.5.1.1

0.5.1.1 (21 May 2018)
* Only depend on fail package when GHC < 8.0.

0.5.1 (9 February 2017)
* Re-export System.Random from Control.Monad.Random.{Lazy,Strict} and
  hence also from Control.Monad.Random.
* Hackage r1: allow transformers-compat-0.6.x.

0.5 (3 January 2017)
* This release has quite a few small additions as well as a big module
  reorganization. However, thanks to module re-exports, most existing
  code using the library should continue to work with no changes; the
  major version bump reflects the large reorganization and my
  inability to 100% guarantee that existing user code will not break.
* The biggest changes that may be of interest to users of the library
  include new lazy vs strict variants of the Rand monad; a new
  MonadInterleave class which is a big improvement over MonadSplit;
  new PrimMonad instances; and new random selection functions like
  weighted, weightedMay, uniformMay, etc.. See the list below for full
  details.
* Although there was some discussion of generalizing MonadRandom to
  work for a wider range of underlying generators (see #26, #31, and
  comments on this blog post), I decided to punt on that for now. It
  seems rather complicated and there are already good alternatives so
  I decided to keep things simple for this release. I'm still open to
  proposals for generalizing future releases.

Changes in 0.5 include:
* Refactor to reflect structure of mtl and transformers libraries.
* Add lazy and strict variants of RandT.
* Add MonadRandom and MonadSplit instances for ListT.
* Add (but do not export) unRandT field to RandT.
* Add MonadCont, MonadError, MonadRWS, PrimMonad, and MonadFail
  instances for RandT.
* Add evalRandTIO operation.
* Move fromList and uniform operations to Control.Monad.Random.Class.
* fromList now raises an error when the total weight of elements is
  zero.
* Generalize the type of uniform to work over any Foldable.
* Add new operations weighted, weightedMay, fromListMay, and
  uniformMay. weighted is like fromList but generalized to work over
  any Foldable. The May variants return a Maybe result instead of
  raising an error.
* New MonadInterleave class for random monads which can interleave
  random generation using split. In some ways this is similar to
  MonadSplit but much more useful.
* Improved documentation.

0.4.2.3 (21 April 2016)
* Mark Control.Monad.Random as Trustworthy.

0.4.2.2 (18 January 2016)
* Allow transformers-0.5.

0.4.2.1 (16 January 2016)
* Allow transformers-compat-0.5.

0.4.2 (16 January 2016)
* Add MonadPlus and Alternative instances for RandT.

0.4.1 (20 November 2015)
* Remove unnecessary Monad m constraint from liftRandT and runRandT.
  This should again technically require a major version bump, but I'm
  not doing it this time in the interest of not being super
  annoying. If this breaks something for you, just yell, and I will
  deprecate this version and do a proper 0.5 release.

0.4 (12 May 2015)
* Remove unnecessary RandomGen g constraints from liftRandT, liftRand,
  evalRandT, evalRand, runRandT, runRand.
* A major version bump is required by the PVP since the types of all
  the above methods have changed, but this release is again very
  unlikely to break any client code.

0.3.0.2 (30 March 2015)
* Add transformers-compat to allow building with newer mtl

0.3.0.1 (24 November 2014)
* Improve documentation: ranges are exclusive at the upper bound

diffstat:

 devel/hs-MonadRandom/Makefile      |   6 ++++--
 devel/hs-MonadRandom/PLIST         |  22 ----------------------
 devel/hs-MonadRandom/buildlink3.mk |   6 ++++--
 3 files changed, 8 insertions(+), 26 deletions(-)

diffs (66 lines):

diff -r 16001fa63c23 -r e4ab1f4b76a9 devel/hs-MonadRandom/Makefile
--- a/devel/hs-MonadRandom/Makefile     Wed Jan 01 03:28:13 2020 +0000
+++ b/devel/hs-MonadRandom/Makefile     Wed Jan 01 03:33:07 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2014/11/23 12:52:32 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.3 2020/01/01 03:33:07 pho Exp $
 
 DISTNAME=      MonadRandom-0.3
 PKGREVISION=   1
@@ -11,6 +11,8 @@
 
 .include "../../mk/haskell.mk"
 .include "../../devel/hs-mtl/buildlink3.mk"
+.include "../../devel/hs-primitive/buildlink3.mk"
 .include "../../devel/hs-random/buildlink3.mk"
-.include "../../devel/hs-transformers/buildlink3.mk"
+.include "../../devel/hs-transformers-compat/buildlink3.mk"
+.include "../../devel/hs-fail/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 16001fa63c23 -r e4ab1f4b76a9 devel/hs-MonadRandom/PLIST
--- a/devel/hs-MonadRandom/PLIST        Wed Jan 01 03:28:13 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2014/10/22 21:30:34 szptvlfn Exp $
-lib/MonadRandom-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/Random.hi
-lib/MonadRandom-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/Random/Class.hi
-lib/MonadRandom-${PKGVERSION}/${HASKELL_VERSION}/HSMonadRandom-${PKGVERSION}.o
-lib/MonadRandom-${PKGVERSION}/${HASKELL_VERSION}/libHSMonadRandom-${PKGVERSION}.a
-lib/MonadRandom-${PKGVERSION}/${HASKELL_VERSION}/package-description
-share/doc/MonadRandom-${PKGVERSION}/LICENSE
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Class.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/Control-Monad-Random.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/MonadRandom.haddock
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/doc-index.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/frames.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/haddock-util.js
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/hslogo-16.png
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/index-frames.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/index.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/mini_Control-Monad-Random-Class.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/mini_Control-Monad-Random.html
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/minus.gif
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/ocean.css
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/plus.gif
-${PLIST.doc}share/doc/MonadRandom-${PKGVERSION}/html/synopsis.png
diff -r 16001fa63c23 -r e4ab1f4b76a9 devel/hs-MonadRandom/buildlink3.mk
--- a/devel/hs-MonadRandom/buildlink3.mk        Wed Jan 01 03:28:13 2020 +0000
+++ b/devel/hs-MonadRandom/buildlink3.mk        Wed Jan 01 03:33:07 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2014/11/23 12:52:32 szptvlfn Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2020/01/01 03:33:07 pho Exp $
 
 BUILDLINK_TREE+=       hs-MonadRandom
 
@@ -10,8 +10,10 @@
 BUILDLINK_PKGSRCDIR.hs-MonadRandom?=   ../../devel/hs-MonadRandom
 
 .include "../../devel/hs-mtl/buildlink3.mk"
+.include "../../devel/hs-primitive/buildlink3.mk"
 .include "../../devel/hs-random/buildlink3.mk"
-.include "../../devel/hs-transformers/buildlink3.mk"
+.include "../../devel/hs-transformers-compat/buildlink3.mk"
+.include "../../devel/hs-fail/buildlink3.mk"
 .endif # HS_MONADRANDOM_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -hs-MonadRandom



Home | Main Index | Thread Index | Old Index