Path to this page:
Subject: CVS commit: pkgsrc/devel/hs-lens
From: Thomas Klausner
Date: 2022-08-23 14:16:25
Message id: 20220823121625.39DEDFB1A@cvs.NetBSD.org
Log Message:
hs-lens: update to 5.2.
5.2 [2022.08.11]
----------------
* Allow building with GHC 9.4.
* The type of `universeOf` has changed:
```diff
-universeOf :: Getting [a] a a -> a -> [a]
+universeOf :: Getting (Endo [a]) a a -> a -> [a]
```
In many cases, using `Endo [a]` over `[a]` improves performance. Most call
sites to `universeOf` will not be affected by this change, although you may
need to update your code if you define your own combinators in terms of
`universeOf`.
* Allow `makeWrapped` to accept the names of data constructors. This way,
`makeWrapped` can be used with data family instances, much like other
functions in `Control.Lens.TH`.
* Define `_OpaqueP`, `_DefaultD`, `_LamCasesE`, `_PromotedInfixT`, and
`_PromotedUInfixT` in `Language.Haskell.TH.Lens` when building with
`template-haskell-2.19.0.0` (GHC 9.4) or later.
5.1.1 [2022.05.17]
------------------
* Add `Data.HashSet.Lens.hashMap`, an `Iso` between a `HashSet a` and a
`HashMap a ()`.
* Allow building with `transformers-0.6.*` and `mtl-2.3.*`.
Note that `lens` no longer defines `Zoom` instances for `ErrorT` or `ListT`
when building with `mtl-2.3` or later. This is because `MonadState` is a
superclass of `Zoom`, and the `MonadState` instances for `ErrorT` and `ListT`
were removed in `mtl-2.3`. Be watchful of this if you build `lens` with
`mtl-2.3` (or later) combined with an older version of `transformers`
(pre-`0.6`) that defines `ErrorT` or `ListT`.
Files: