Received: by mail.netbsd.org (Postfix, from userid 605) id 6380684ECB; Sun, 28 Aug 2022 21:38:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9E5DD84EC9 for ; Sun, 28 Aug 2022 21:38:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 0VSUweZs0lCM for ; Sun, 28 Aug 2022 21:38:43 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id EE71484D1D for ; Sun, 28 Aug 2022 21:38:42 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E75D2FA82; Sun, 28 Aug 2022 21:38:42 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1661722722138210" MIME-Version: 1.0 Date: Sun, 28 Aug 2022 21:38:42 +0000 From: "Makoto Fujiwara" Subject: CVS commit: pkgsrc/converters/hs-lens-aeson To: pkgsrc-changes@NetBSD.org Reply-To: mef@netbsd.org X-Mailer: log_accum Message-Id: <20220828213842.E75D2FA82@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1661722722138210 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: mef Date: Sun Aug 28 21:38:42 UTC 2022 Modified Files: pkgsrc/converters/hs-lens-aeson: Makefile distinfo Log Message: (converters/hs-lens-aeson) Updated 1.1.3 to 1.2.2 1.2.2 [2022.08.11] ------------------ * Add `atKey :: AsValue t => Key -> Traversal' t (Maybe Value)`, a variant of `key` that uses `at` instead of `ix`. 1.2.1 [2022.05.07] ------------------ * Change the `IsKey` instances for `ByteString`s to use `decodeUtf8With lenientDecode` instead of `decodeUtf8`. While these `IsKey` instances are meant to used for interoperability with `aeson` values that are UTF-8–encoded, using `decodeUtf8With lenientDecode` at least ensures that converting a non–UTF-8–encoded `ByteString` will not crash. 1.2 [2022.03.19] ---------------- * Require `aeson-2.0.2.*` and `lens-5.0.*` or greater. * Change the types of `_Object`, `key`, and `members`: ```diff -_Object :: Prism' t (HashMap Text Value) +_Object :: Prism' t (KeyMap Value) -key :: AsValue t => Text -> Traversal' t Value +key :: AsValue t => Key -> Traversal' t Value -members :: AsValue t => IndexedTraversal' Text t Value +members :: AsValue t => IndexedTraversal' Key t Value ``` This mirrors similar changes made in `aeson-2.0.*`, where the type of `Object`'s field was changed from `HashMap Text Value` to `KeyMap Value`. The `Ixed Value` instance changes similarly: ```diff -type instance Index Value = Text +type instance Index Value = Key ``` * Remove `Primitive` and `AsPrimitive`, since https://tools.ietf.org/html/rfc7159 de-emphasized the notion of primitive versus composite JSON values. * The `AsPrimitive` methods (`_Value`, `_String`, and `_Bool`) are now `AsValue` methods. * `_Number`'s default signature, `Bool_`, `String_`, and `Null_` now have an `AsValue` constraint. * Add `Wrapped` and `Rewrapped` instances for `KeyMap`. These treat `KeyMap v` as a wrapper around `[(Key, v)]`. The order in which the key-value pairs appear in this list is not stable. * Add an `IsKey` class, whose method `_Key` is an `Iso` for converting values to and from a `Key`. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 pkgsrc/converters/hs-lens-aeson/Makefile cvs rdiff -u -r1.1 -r1.2 pkgsrc/converters/hs-lens-aeson/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1661722722138210 Content-Disposition: inline Content-Length: 1618 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/converters/hs-lens-aeson/Makefile diff -u pkgsrc/converters/hs-lens-aeson/Makefile:1.3 pkgsrc/converters/hs-lens-aeson/Makefile:1.4 --- pkgsrc/converters/hs-lens-aeson/Makefile:1.3 Sat Aug 20 08:08:12 2022 +++ pkgsrc/converters/hs-lens-aeson/Makefile Sun Aug 28 21:38:42 2022 @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2022/08/20 08:08:12 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2022/08/28 21:38:42 mef Exp $ -DISTNAME= lens-aeson-1.1.3 -PKGREVISION= 2 +DISTNAME= lens-aeson-1.2.2 CATEGORIES= converters MAINTAINER= pkgsrc-users@NetBSD.org Index: pkgsrc/converters/hs-lens-aeson/distinfo diff -u pkgsrc/converters/hs-lens-aeson/distinfo:1.1 pkgsrc/converters/hs-lens-aeson/distinfo:1.2 --- pkgsrc/converters/hs-lens-aeson/distinfo:1.1 Wed Feb 16 10:01:34 2022 +++ pkgsrc/converters/hs-lens-aeson/distinfo Sun Aug 28 21:38:42 2022 @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.1 2022/02/16 10:01:34 pho Exp $ +$NetBSD: distinfo,v 1.2 2022/08/28 21:38:42 mef Exp $ -BLAKE2s (lens-aeson-1.1.3.tar.gz) = 88abb483fe3e2cce1f042aa2054d24ed695a49521c960e861d9866d29bcbfa6e -SHA512 (lens-aeson-1.1.3.tar.gz) = e8139b700c5e310087603a378c9f72507fa057da3a4ce4b9685a2c43812b51af3c0e6f6604bc0f5e78ac9c69ff214287f7e8532a97286aabeb278a4dea9f2a6e -Size (lens-aeson-1.1.3.tar.gz) = 7377 bytes +BLAKE2s (lens-aeson-1.2.2.tar.gz) = 89240eef538a307c71931d5d758e6f79131ca2ec6229fee0fcbf067d73e5484b +SHA512 (lens-aeson-1.2.2.tar.gz) = 91aac545d7e296879176ead2870b36e02a23c238c2378e4e91bd6e3feb14407b7be8e072240a81effbdc864952552ad7f273546e3718ad93a619e5616388536d +Size (lens-aeson-1.2.2.tar.gz) = 8290 bytes --_----------=_1661722722138210--