pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/hs-vector hs-vector: update to 0.13.0.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/11a54a982d7d
branches: trunk
changeset: 383465:11a54a982d7d
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Aug 19 12:30:14 2022 +0000
description:
hs-vector: update to 0.13.0.0.
# Changes in version 0.13.0.0
* `mkType` from `Data.Vector.Generic` is deprecated in favor of
`Data.Data.mkNoRepType`
* The role signatures on several `Vector` types were too permissive, so they
have been tightened up:
* The role signature for `Data.Vector.Mutable.MVector` is now
`type role MVector nominal representational` (previously, both arguments
were `phantom`). [#224](https://github.com/haskell/vector/pull/224)
* The role signature for `Data.Vector.Primitive.Vector` is now
`type role Vector nominal` (previously, it was `phantom`).
The role signature for `Data.Vector.Primitive.Mutable.MVector` is now
`type role MVector nominal nominal` (previously, both arguments were
`phantom`). [#316](https://github.com/haskell/vector/pull/316)
* The role signature for `Data.Vector.Storable.Vector` is now
`type role Vector nominal` (previous, it was `phantom`), and the signature
for `Data.Vector.Storable.Mutable.MVector` is now
`type role MVector nominal nominal` (previous, both arguments were
`phantom`). [#235](https://github.com/haskell/vector/pull/235)
We pick `nominal` for the role of the last argument instead of
`representational` since the internal structure of a `Storable` vector is
determined by the `Storable` instance of the element type, and it is not
guaranteed that the `Storable` instances between two representationally
equal types will preserve this internal structure. One consequence of this
choice is that it is no longer possible to `coerce` between
`Storable.Vector a` and `Storable.Vector b` if `a` and `b` are nominally
distinct but representationally equal types. We now provide
`unsafeCoerce{M}Vector` and `unsafeCast` functions to allow this (the onus
is on the user to ensure that no `Storable` invariants are broken when
using these functions).
* Methods of type classes `Data.Vector.Generic.Mutable.MVector` and
`Data.Vector.Generic.Vector` use concrete monads (`ST`, etc) istead of being
polymorphic (`PrimMonad`, etc). [#335](https://github.com/haskell/vector/pull/335).
This makes it possible to derive `Unbox` with:
* `GeneralizedNewtypeDeriving`
* via `UnboxViaPrim` and `Prim` instance
* via `As` and `IsoUnbox` instance: [#378](https://github.com/haskell/vector/pull/378)
* Add `MonadFix` instance for boxed vectors: [#312](https://github.com/haskell/vector/pull/312)
* Re-export `PrimMonad` and `RealWorld` from mutable vectors:
[#320](https://github.com/haskell/vector/pull/320)
* Add `maximumOn` and `minimumOn`: [#356](https://github.com/haskell/vector/pull/356)
* The functions `scanl1`, `scanl1'`, `scanr1`, and `scanr1'` for immutable
vectors are now defined when given empty vectors as arguments,
in which case they return empty vectors. This new behavior is consistent
with the one of the corresponding functions in `Data.List`.
Prior to this change, applying an empty vector to any of those functions
resulted in an error. This change was introduced in:
[#382](https://github.com/haskell/vector/pull/382)
* Change allocation strategy for `unfoldrN`: [#387](https://github.com/haskell/vector/pull/387)
* Remove `CPP` driven error reporting in favor of `HasCallStack`:
[#397](https://github.com/haskell/vector/pull/397)
* Remove redundant `Storable` constraints on to/from `ForeignPtr` conversions:
[#394](https://github.com/haskell/vector/pull/394)
* Add `unsafeCast` to `Primitive` vectors: [#401](https://github.com/haskell/vector/pull/401)
* Make `(!?)` operator strict: [#402](https://github.com/haskell/vector/pull/402)
* Add `readMaybe`: [#425](https://github.com/haskell/vector/pull/425)
* Add `groupBy` and `group` for `Data.Vector.Generic` and the specialized
version in `Data.Vector`, `Data.Vector.Unboxed`, `Data.Vector.Storable` and
`Data.Vector.Primitive`. [#427](https://github.com/haskell/vector/pull/427)
* Add `toArraySlice` and `unsafeFromArraySlice` functions for conversion to and
from the underlying boxed `Array`: [#434](https://github.com/haskell/vector/pull/434)
diffstat:
devel/hs-vector/Makefile | 6 +++---
devel/hs-vector/PLIST | 4 +---
devel/hs-vector/distinfo | 8 ++++----
3 files changed, 8 insertions(+), 10 deletions(-)
diffs (53 lines):
diff -r 23a0a3191213 -r 11a54a982d7d devel/hs-vector/Makefile
--- a/devel/hs-vector/Makefile Fri Aug 19 12:23:33 2022 +0000
+++ b/devel/hs-vector/Makefile Fri Aug 19 12:30:14 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2022/02/26 03:58:12 pho Exp $
+# $NetBSD: Makefile,v 1.14 2022/08/19 12:30:14 wiz Exp $
-DISTNAME= vector-0.12.3.1
-PKGREVISION= 2
+DISTNAME= vector-0.13.0.0
CATEGORIES= devel
MAINTAINER= pho%cielonegro.org@localhost
@@ -10,4 +9,5 @@
.include "../../mk/haskell.mk"
.include "../../devel/hs-primitive/buildlink3.mk"
+.include "../../devel/hs-vector-stream/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 23a0a3191213 -r 11a54a982d7d devel/hs-vector/PLIST
--- a/devel/hs-vector/PLIST Fri Aug 19 12:23:33 2022 +0000
+++ b/devel/hs-vector/PLIST Fri Aug 19 12:30:14 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2021/04/23 07:00:57 pho Exp $
+@comment $NetBSD: PLIST,v 1.6 2022/08/19 12:30:14 wiz Exp $
lib/vector-${PKGVERSION}/${HS_VERSION}/package-description
lib/vector-${PKGVERSION}/${HS_VERSION}/package-id
lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
@@ -78,11 +78,9 @@
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Generic-Mutable.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Generic-New.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Generic.html
-share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Internal-Check.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Mutable.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Primitive-Mutable.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Primitive.html
-share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Storable-Internal.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Storable-Mutable.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Storable.html
share/doc/${HS_PLATFORM}/vector-${PKGVERSION}/html/Data-Vector-Unboxed-Mutable.html
diff -r 23a0a3191213 -r 11a54a982d7d devel/hs-vector/distinfo
--- a/devel/hs-vector/distinfo Fri Aug 19 12:23:33 2022 +0000
+++ b/devel/hs-vector/distinfo Fri Aug 19 12:30:14 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2022/02/11 13:40:50 pho Exp $
+$NetBSD: distinfo,v 1.13 2022/08/19 12:30:14 wiz Exp $
-BLAKE2s (vector-0.12.3.1.tar.gz) = 99fa94ba789b61a6fab680b388f7924c8c43a5721411cf44eb2000777e1b4e83
-SHA512 (vector-0.12.3.1.tar.gz) = bf117d53c7844c010dc1cee8b778851bd714155fd34e671ae2eb7bd324427de972389eb9f3f315832f20e7bbbecc93ec0f6296ab10e4935957d2a4e14c6cfd98
-Size (vector-0.12.3.1.tar.gz) = 151420 bytes
+BLAKE2s (vector-0.13.0.0.tar.gz) = 8b374b32fb62b0b723c313d3773165503ea97a217c6fd7c66cc0e4496fabed98
+SHA512 (vector-0.13.0.0.tar.gz) = aadb33cb1acf3cc634631fbf6a8764fb92514a43c17395e305c9fcc91e0768ce51cec30c542a9ba998bf90e297732082ef5dbbf74232c885d613ac0fb7bcd2e1
+Size (vector-0.13.0.0.tar.gz) = 154509 bytes
Home |
Main Index |
Thread Index |
Old Index