10 Commits

Author SHA256 Message Date
92e0cf8555 Accepting request 1313752 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1313752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-lens?expand=0&rev=33
2025-10-27 13:41:19 +00:00
05b12e39d2 osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-lens revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lens?expand=0&rev=80
2025-10-20 21:01:41 +00:00
12d58ac035 Accepting request 1288397 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1288397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-lens?expand=0&rev=32
2025-07-02 10:08:06 +00:00
d379d1dbe4 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-lens revision:5, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lens?expand=0&rev=78
2025-06-18 06:14:57 +00:00
14cf34c57e Accepting request 1253817 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1253817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-lens?expand=0&rev=31
2025-03-17 21:19:00 +00:00
23bdc189ce osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-lens revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lens?expand=0&rev=76
2025-03-10 22:00:54 +00:00
72cd12418c Accepting request 1234958 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1234958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-lens?expand=0&rev=30
2025-01-05 14:32:06 +00:00
2726e4be54 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-lens revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lens?expand=0&rev=74
2024-12-29 22:00:45 +00:00
3812f5f085 Accepting request 1231455 from devel:languages:haskell
version update for ghc-9.10.1

OBS-URL: https://build.opensuse.org/request/show/1231455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-lens?expand=0&rev=29
2024-12-20 22:10:43 +00:00
4e08db9dc4 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-lens revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lens?expand=0&rev=72
2024-12-10 11:25:54 +00:00
5 changed files with 126 additions and 34 deletions

View File

@@ -1,3 +1,94 @@
-------------------------------------------------------------------
Sun Oct 19 19:38:31 UTC 2025 - Peter Simons <psimons@suse.com>
- Update lens to version 5.3.5 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Jun 17 11:56:55 UTC 2025 - Peter Simons <psimons@suse.com>
- Update lens to version 5.3.5.
5.3.5 [2025.06.17]
------------------
* Replace `test-framework` with `tasty` in the test suite.
-------------------------------------------------------------------
Mon Mar 3 12:24:55 UTC 2025 - Peter Simons <psimons@suse.com>
- Update lens to version 5.3.4.
5.3.4 [2025.03.03]
------------------
* Reduce the arity of `foldr1Of`, `foldl1Of`, `foldrOf'`, `foldlOf'`,
`foldr1Of'`, `foldl1Of'`, `foldrMOf`, and `foldlMOf` so that GHC is more
eager to inline them. On a simple benchmark involving `sumOf` (defined in
terms of `foldlOf'`), this improves performance by 8x.
* Add `Ixed`, `Cons`, `Each`, `AsEmpty`, `Reversing`, and `Rewrapped` instances
for strict boxed vectors when building with `vector-0.13.2` or later.
* Add an `AsEmpty` instance for primitive `Vector`s.
-------------------------------------------------------------------
Sat Dec 28 16:38:55 UTC 2024 - Peter Simons <psimons@suse.com>
- Update lens to version 5.3.3.
5.3.3 [2024.12.28]
------------------
* Add `makeFieldsId`, which generates overloaded field accessors using the
same names as the underlying fields. This is intended for use with the
`NoFieldSelectors` and `DuplicateRecordFields` language extensions.
Also add `classIdFields :: LensRules` and `classIdNamer :: FieldNamer`, both
of which use the same naming rules as `makeFieldsId`.
* Update the `Prism`s in `Language.Haskell.TH.Lens` to reflect additions to
`template-haskell-2.23.0.0`:
* Add an `_OrP` `Prism` for the `Pat` data type.
* Add `_ForallE`, `_ForallVisE`, and `_ConstrainedE` `Prism`s for the `Exp`
data type.
-------------------------------------------------------------------
Fri Jul 5 15:12:02 UTC 2024 - Peter Simons <psimons@suse.com>
- Update lens to version 5.3.2 revision 2.
5.3.2 [2024.05.12]
------------------
* Define the following lenses that perform an operation and result the old
result:
* `(<<<>:~)` (prepend to the front via `(<>)` and return the old result)
* `(<<<|~)` (prepend to the front via `(<|)` and return the old result)
* `(<<|>~)` (append to the back via `(|>)` and return the old result)
Each of these also has a variant that end with `=` instead of `~` (e.g.,
`(<<<>:=)`) for working in a `MonadState` setting.
* Re-export `(<>:~)`, `(<<>:~)`, `(<|~)`, `(<<|~)`, `(|>~)`, and `(<|>~)` (as
well as their variants which end with `=` instead of `~`, and their variants
which return the old result) from `Control.Lens.Operators`.
5.3.1 [2024.05.05]
------------------
* Add a `Magnify` instance for the CPS variant of `RWST` when building with
`mtl-2.3` or later.
5.3 [2024.05.04]
----------------
* Allow building with GHC 9.10.
* Update the `Prism`s in `Language.Haskell.TH.Lens` to reflect additions to
`template-haskell-2.22.0.0`:
* The `_InfixD` `Prism` now focuses on `(Fixity, NamespaceSpecifier, Name)`
when building with `template-haskell-2.22.0.0` or later.
* Add `Prism`s for the newly introduced `NamespaceSpecifier` data type.
* Add `_TypeP` and `_InvisP` `Prism`s for the `Pat` data type.
* Add a `_TypeE` `Prism` for the `Exp` data type.
* Add a `_SCCP` `Prism` for the `Pragma` data type.
* Add the following `Setter`s for prepending and appending elements:
* `(<>:~)`: prepend an element to the front via `(<>)`.
* `(<<>:~)`: prepend an element to the front via `(<>)` and return the result.
* `(<|~)`: cons an element to the front via `(<|)`.
* `(<<|~)`: cons an element to the front via `(<|)` and return the result.
* `(|>~)`: snoc an element to the back via `(|>)`.
* `(<|>~)`: snoc an element to the back via `(|>)` and return the result.
Each of these also has a variant that end with `=` instead of `~` (e.g.,
`(<>:=)`) for working in a `MonadState` setting.
-------------------------------------------------------------------
Tue Apr 30 16:00:18 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package ghc-lens
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,13 +20,13 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 5.2.3
Version: 5.3.5
Release: 0
Summary: Lenses, Folds and Traversals
License: BSD-2-Clause
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/5.cabal#/%{pkg_name}.cabal
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-array-prof
@@ -97,20 +97,18 @@ BuildRequires: ghc-vector-devel
BuildRequires: ghc-vector-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-HUnit-prof
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-simple-reflect-devel
BuildRequires: ghc-simple-reflect-prof
BuildRequires: ghc-test-framework-devel
BuildRequires: ghc-test-framework-hunit-devel
BuildRequires: ghc-test-framework-hunit-prof
BuildRequires: ghc-test-framework-prof
BuildRequires: ghc-test-framework-quickcheck2-devel
BuildRequires: ghc-test-framework-quickcheck2-prof
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-hunit-prof
BuildRequires: ghc-tasty-prof
BuildRequires: ghc-tasty-quickcheck-devel
BuildRequires: ghc-tasty-quickcheck-prof
%endif
%description
@@ -127,8 +125,8 @@ An overview, with a large number of examples can be found in the
An introductory video on the style of code used in this library by Simon Peyton
Jones is available from
<http://skillsmatter.com/podcast/scala/lenses-compositional-data-access-and-manipulation
Skills Matter>.
<https://archive.org/details/lenses-compositional-data-access-and-manipulation-simon-peyton-jones-at-haskell-
Internet Archive>.
A video on how to use lenses and how they are constructed is available on
<http://youtu.be/cefnmjtAolY?hd=1 youtube>.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df1e8ca8dd89d884994e0c80761a972088326fa43ed5d47c01b14abb710b994d
size 703220

3
lens-5.3.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:efebacf3dfb108c96171e564f059778d21ac262a98a956fef8890223ed8f1fe8
size 707043

View File

@@ -1,7 +1,7 @@
name: lens
category: Data, Lenses, Generics
version: 5.2.3
x-revision: 5
version: 5.3.5
x-revision: 1
license: BSD2
cabal-version: 1.18
license-file: LICENSE
@@ -21,9 +21,11 @@ tested-with: GHC == 8.0.2
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.5
, GHC == 9.6.2
, GHC == 9.8.1
, GHC == 9.4.8
, GHC == 9.6.6
, GHC == 9.8.4
, GHC == 9.10.1
, GHC == 9.12.1
synopsis: Lenses, Folds and Traversals
description:
This package comes \"Batteries Included\" with many useful lenses for the types
@@ -36,7 +38,7 @@ description:
.
An overview, with a large number of examples can be found in the <https://github.com/ekmett/lens#lens-lenses-folds-and-traversals README>.
.
An introductory video on the style of code used in this library by Simon Peyton Jones is available from <http://skillsmatter.com/podcast/scala/lenses-compositional-data-access-and-manipulation Skills Matter>.
An introductory video on the style of code used in this library by Simon Peyton Jones is available from <https://archive.org/details/lenses-compositional-data-access-and-manipulation-simon-peyton-jones-at-haskell- Internet Archive>.
.
A video on how to use lenses and how they are constructed is available on <http://youtu.be/cefnmjtAolY?hd=1 youtube>.
.
@@ -182,25 +184,25 @@ library
bytestring >= 0.10.4.0 && < 0.13,
call-stack >= 0.1 && < 0.5,
comonad >= 5.0.7 && < 6,
containers >= 0.5.5.1 && < 0.8,
containers >= 0.5.5.1 && < 0.9,
contravariant >= 1.4 && < 2,
distributive >= 0.5.1 && < 1,
exceptions >= 0.8.2.1 && < 1,
filepath >= 1.2.0.0 && < 1.6,
free >= 5.1.5 && < 6,
ghc-prim,
hashable >= 1.2.7.0 && < 1.5,
hashable >= 1.2.7.0 && < 1.6,
indexed-traversable >= 0.1 && < 0.2,
indexed-traversable-instances >= 0.1 && < 0.2,
kan-extensions >= 5 && < 6,
mtl >= 2.2.1 && < 2.4,
parallel >= 3.2.1.0 && < 3.3,
parallel >= 3.2.1.0 && < 3.4,
profunctors >= 5.5.2 && < 6,
reflection >= 2.1 && < 3,
semigroupoids >= 5.0.1 && < 7,
strict >= 0.4 && < 0.6,
tagged >= 0.8.6 && < 1,
template-haskell >= 2.11.1.0 && < 2.22,
template-haskell >= 2.11.1.0 && < 2.24,
text >= 1.2.3.0 && < 2.2,
th-abstraction >= 0.4.1 && < 0.8,
these >= 1.1.1.1 && < 1.3,
@@ -333,6 +335,9 @@ test-suite templates
T799
T917
T972
if impl(ghc >= 9.2)
other-modules:
T1024
ghc-options: -Wall -threaded
hs-source-dirs: tests
default-language: Haskell2010
@@ -363,9 +368,9 @@ test-suite properties
build-depends:
base,
lens,
QuickCheck >= 2.4,
test-framework >= 0.6,
test-framework-quickcheck2 >= 0.2,
QuickCheck >= 2.4,
tasty >= 1.4 && < 1.6,
tasty-quickcheck >= 0.10 && < 0.12,
transformers
test-suite hunit
@@ -381,13 +386,12 @@ test-suite hunit
build-depends:
base,
containers,
HUnit >= 1.2,
lens,
mtl,
text,
bytestring,
test-framework >= 0.6,
test-framework-hunit >= 0.2
tasty >= 1.4 && < 1.6,
tasty-hunit >= 0.10 && < 0.11
-- We need this dummy test-suite to add simple-reflect to the install plan
--
@@ -399,7 +403,7 @@ test-suite doctests
hs-source-dirs: tests
default-language: Haskell2010
build-depends: base, deepseq, simple-reflect >= 0.3.1
build-depends: base <5, deepseq, simple-reflect >= 0.3.1
-- Basic benchmarks for the uniplate-style combinators
benchmark plated
@@ -410,7 +414,6 @@ benchmark plated
default-language: Haskell2010
build-depends:
base,
base-compat >=0.11.0 && <0.15,
comonad,
criterion,
deepseq,