summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2022-08-28 21:38:42 +0000
committermef <mef@pkgsrc.org>2022-08-28 21:38:42 +0000
commitfbdbc4cb8690c7b5c04415a444340f93a41dad01 (patch)
tree52e2521788cf5c877cb34b7bc6090da1bb4df926 /converters
parenta05da172087b1a96c56be05655abe877ff4fa9de (diff)
downloadpkgsrc-fbdbc4cb8690c7b5c04415a444340f93a41dad01.tar.gz
(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`.
Diffstat (limited to 'converters')
-rw-r--r--converters/hs-lens-aeson/Makefile5
-rw-r--r--converters/hs-lens-aeson/distinfo8
2 files changed, 6 insertions, 7 deletions
diff --git a/converters/hs-lens-aeson/Makefile b/converters/hs-lens-aeson/Makefile
index e3f92ad837f..82d8a85f323 100644
--- a/converters/hs-lens-aeson/Makefile
+++ b/converters/hs-lens-aeson/Makefile
@@ -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
diff --git a/converters/hs-lens-aeson/distinfo b/converters/hs-lens-aeson/distinfo
index 9ce93710032..25b3f3fafca 100644
--- a/converters/hs-lens-aeson/distinfo
+++ b/converters/hs-lens-aeson/distinfo
@@ -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