pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/hs-primitive
Module Name: pkgsrc
Committed By: pho
Date: Tue Dec 31 17:25:06 UTC 2019
Modified Files:
pkgsrc/devel/hs-primitive: Makefile buildlink3.mk distinfo
Removed Files:
pkgsrc/devel/hs-primitive: PLIST
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/hs-primitive/Makefile
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/hs-primitive/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/hs-primitive/buildlink3.mk \
pkgsrc/devel/hs-primitive/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/hs-primitive/Makefile
diff -u pkgsrc/devel/hs-primitive/Makefile:1.3 pkgsrc/devel/hs-primitive/Makefile:1.4
--- pkgsrc/devel/hs-primitive/Makefile:1.3 Sun Dec 13 14:06:53 2015
+++ pkgsrc/devel/hs-primitive/Makefile Tue Dec 31 17:25:06 2019
@@ -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
Index: pkgsrc/devel/hs-primitive/buildlink3.mk
diff -u pkgsrc/devel/hs-primitive/buildlink3.mk:1.4 pkgsrc/devel/hs-primitive/buildlink3.mk:1.5
--- pkgsrc/devel/hs-primitive/buildlink3.mk:1.4 Sun Dec 13 14:06:53 2015
+++ pkgsrc/devel/hs-primitive/buildlink3.mk Tue Dec 31 17:25:06 2019
@@ -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"
Index: pkgsrc/devel/hs-primitive/distinfo
diff -u pkgsrc/devel/hs-primitive/distinfo:1.4 pkgsrc/devel/hs-primitive/distinfo:1.5
--- pkgsrc/devel/hs-primitive/distinfo:1.4 Sun Dec 13 14:06:53 2015
+++ pkgsrc/devel/hs-primitive/distinfo Tue Dec 31 17:25:06 2019
@@ -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