pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-primitive Update to primitive-0.6.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52000eaa2b49
branches:  trunk
changeset: 406933:52000eaa2b49
user:      pho <pho%pkgsrc.org@localhost>
date:      Tue Dec 31 17:25:06 2019 +0000

description:
Update to primitive-0.6.4.0

Changes in version 0.6.4.0
* Introduce Data.Primitive.PrimArray, which offers types and function
  for dealing with a ByteArray tagged with a phantom type variable for
  tracking the element type.
* Implement isByteArrayPinned and isMutableByteArrayPinned.
* Add Eq1, Ord1, Show1, and Read1 instances for Array and SmallArray.
* Improve the test suite. This includes having property tests for
  typeclasses from base such as Eq, Ord, Functor, Applicative, Monad,
  IsList, Monoid, Foldable, and Traversable.
* Fix the broken IsList instance for ByteArray. The old definition
  would allocate a byte array of the correct size and then leave the
  memory unitialized instead of writing the list elements to it.
* Fix the broken Functor instance for Array. The old definition would
  allocate an array of the correct size with thunks for erroring
  installed at every index. It failed to replace these thunks with the
  result of the function applied to the elements of the argument
  array.
* Fix the broken Applicative instances of Array and SmallArray. The
  old implementation of <*> for Array failed to initialize some
  elements but correctly initialized others in the resulting Array. It
  is unclear what the old behavior of <*> was for SmallArray, but it
  was incorrect.
* Fix the broken Monad instances for Array and SmallArray.
* Fix the implementation of foldl1 in the Foldable instances for Array
  and SmallArray. In both cases, the old implementation simply
  returned the first element of the array and made no use of the other
  elements in the array.
* Fix the implementation of mconcat in the Monoid instance for
  SmallArray.
* Implement Data.Primitive.Ptr, implementations of Ptr functions that
  require a Prim constraint instead of a Storable constraint.
* Add PrimUnlifted instances for TVar and MVar.
* Use compareByteArrays# for the Eq and Ord instances of ByteArray
  when building with GHC 8.4 and newer.
* Add Prim instances for lots of types in Foreign.C.Types and
  System.Posix.Types.
* Reexport Data.Primitive.SmallArray and Data.Primitive.UnliftedArray
  from Data.Primitive.
* Add fold functions and map function to
  Data.Primitive.UnliftedArray. Add typeclass instances for IsList,
  Ord, and Show.
* Add defaultSetByteArray# and defaultSetOffAddr# to
  Data.Primitive.Types.
* Add Data.Primitive.MVar, a replacement for Control.Concurrent.MVar
  that can run in any PrimMonad instead of just IO. It is not a full
  replacement. Notably, it's missing masking functions and support for
  adding finalizers.

Changes in version 0.6.3.0
* Add PrimMonad instances for ContT, AccumT, and SelectT from
  transformers
* Add Eq, Ord, Show, and IsList instances for ByteArray
* Add Semigroup instances for Array and SmallArray. This allows
  primitive to build on GHC 8.4 and later.

Changes in version 0.6.2.0
* Drop support for GHCs before 7.4
* SmallArray support
* ArrayArray# based support for more efficient arrays of unlifted
  pointer types
* Make Array and the like instances of various classes for convenient
  use
* Add Prim instances for Ptr and FunPtr
* Add ioToPrim, stToPrim and unsafe counterparts for situations that
  would otherwise require type ascriptions on primToPrim
* Add evalPrim
* Add PrimBase instance for IdentityT

diffstat:

 devel/hs-primitive/Makefile      |   4 +-
 devel/hs-primitive/PLIST         |  43 ----------------------------------------
 devel/hs-primitive/buildlink3.mk |   6 ++--
 devel/hs-primitive/distinfo      |  10 ++++----
 4 files changed, 10 insertions(+), 53 deletions(-)

diffs (93 lines):

diff -r d1c3ee6b192b -r 52000eaa2b49 devel/hs-primitive/Makefile
--- a/devel/hs-primitive/Makefile       Tue Dec 31 16:36:18 2019 +0000
+++ b/devel/hs-primitive/Makefile       Tue Dec 31 17:25:06 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2015/12/13 14:06:53 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.4 2019/12/31 17:25:06 pho Exp $
 
-DISTNAME=      primitive-0.6.1.0
+DISTNAME=      primitive-0.6.4.0
 CATEGORIES=    devel
 
 MAINTAINER=    pho%cielonegro.org@localhost
diff -r d1c3ee6b192b -r 52000eaa2b49 devel/hs-primitive/PLIST
--- a/devel/hs-primitive/PLIST  Tue Dec 31 16:36:18 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2014/05/25 21:53:28 szptvlfn Exp $
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/Primitive.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/Addr.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/Array.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/ByteArray.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/Internal/Compat.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/Internal/Operations.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/MachDeps.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/MutVar.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/Data/Primitive/Types.hi
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/HSprimitive-${PKGVERSION}.o
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/include/primitive-memops.h
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/libHSprimitive-${PKGVERSION}.a
-lib/primitive-${PKGVERSION}/${HASKELL_VERSION}/package-description
-share/doc/primitive-${PKGVERSION}/LICENSE
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Control-Monad-Primitive.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive-Addr.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive-Array.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive-ByteArray.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive-MachDeps.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive-MutVar.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive-Types.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/Data-Primitive.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/doc-index.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/frames.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/haddock-util.js
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/hslogo-16.png
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/index-frames.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/index.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Control-Monad-Primitive.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive-Addr.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive-Array.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive-ByteArray.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive-MachDeps.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive-MutVar.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive-Types.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/mini_Data-Primitive.html
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/minus.gif
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/ocean.css
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/plus.gif
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/primitive.haddock
-${PLIST.doc}share/doc/primitive-${PKGVERSION}/html/synopsis.png
diff -r d1c3ee6b192b -r 52000eaa2b49 devel/hs-primitive/buildlink3.mk
--- a/devel/hs-primitive/buildlink3.mk  Tue Dec 31 16:36:18 2019 +0000
+++ b/devel/hs-primitive/buildlink3.mk  Tue Dec 31 17:25:06 2019 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.4 2015/12/13 14:06:53 szptvlfn Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2019/12/31 17:25:06 pho Exp $
 
 BUILDLINK_TREE+=       hs-primitive
 
 .if !defined(HS_PRIMITIVE_BUILDLINK3_MK)
 HS_PRIMITIVE_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-primitive+=   hs-primitive>=0.6.1
-BUILDLINK_ABI_DEPENDS.hs-primitive+=   hs-primitive>=0.6.1.0
+BUILDLINK_API_DEPENDS.hs-primitive+=   hs-primitive>=0.6.4
+BUILDLINK_ABI_DEPENDS.hs-primitive+=   hs-primitive>=0.6.4.0
 BUILDLINK_PKGSRCDIR.hs-primitive?=     ../../devel/hs-primitive
 
 .include "../../devel/hs-transformers/buildlink3.mk"
diff -r d1c3ee6b192b -r 52000eaa2b49 devel/hs-primitive/distinfo
--- a/devel/hs-primitive/distinfo       Tue Dec 31 16:36:18 2019 +0000
+++ b/devel/hs-primitive/distinfo       Tue Dec 31 17:25:06 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2015/12/13 14:06:53 szptvlfn Exp $
+$NetBSD: distinfo,v 1.5 2019/12/31 17:25:06 pho Exp $
 
-SHA1 (primitive-0.6.1.0.tar.gz) = 2c1aea8754e9dad7adeb16a0052e6c32f8058ac5
-RMD160 (primitive-0.6.1.0.tar.gz) = 001324da6b15c9220304ab23d0cba166fa3e19d9
-SHA512 (primitive-0.6.1.0.tar.gz) = 7d75602732aae7af4ea5fb6678f669b103c5c40035c2fa2cc27d940e911054722d20f1b53865cfd0b430785baa0843de89de7195bb2d72c5bc1e5aeb4fdc5f82
-Size (primitive-0.6.1.0.tar.gz) = 12857 bytes
+SHA1 (primitive-0.6.4.0.tar.gz) = 44a7377813c97699ae3b6e4cb7e7e83f8a5b97e4
+RMD160 (primitive-0.6.4.0.tar.gz) = f8d0bec3981b9c24db73eaadeff79b3a9511638c
+SHA512 (primitive-0.6.4.0.tar.gz) = a9d31b386c41abd4a5e601883b6f4d230c9669d1eda840a3491fc2e5961e8bce0c2bc1026426b92a36790cd372db954b3003499c540605289540e26543e12b80
+Size (primitive-0.6.4.0.tar.gz) = 45937 bytes



Home | Main Index | Thread Index | Old Index