Commit graph

5 commits

Author SHA1 Message Date
pho
ab87d665e4 revbump all the Haskell packages after modifying the runtime system of lang/ghc94 2023-02-07 01:40:22 +00:00
mef
9825d0695b (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`.
2022-08-28 21:38:42 +00:00
wiz
4d8292c68e hs*: recursive bump for new dependencies needed
for hs-aeson, hs-vector
2022-08-20 08:08:12 +00:00
pho
eda754ca5a Bump all Haskell packages after enabling "split sections" in mk/haskell.mk 2022-02-26 03:57:43 +00:00
pho
9030754f28 converters/hs-lens-aeson: import hs-lens-aeson-1.1.3
The goal of lens-aeson is to provide traversals and prisms for the Aeson
library's Value type, while obeying the Traversal/Prism laws.
2022-02-16 10:01:34 +00:00