pkgsrc-Changes archive

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

CVS commit: pkgsrc/converters/hs-lens-aeson



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.

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@localhost

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



Home | Main Index | Thread Index | Old Index