Accepting request 987036 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/987036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-generic-lens?expand=0&rev=7
This commit is contained in:
Richard Brown 2022-08-01 19:29:46 +00:00 committed by Git OBS Bridge
commit 9a06c7c553
3 changed files with 114 additions and 0 deletions

106
generic-lens.cabal Normal file
View File

@ -0,0 +1,106 @@
name: generic-lens
version: 2.2.1.0
x-revision: 1
synopsis: Generically derive traversals, lenses and prisms.
description: This library uses GHC.Generics to derive efficient optics (traversals, lenses and prisms) for algebraic data types in a type-directed way, with a focus on good type inference and error messages when possible.
.
The library exposes a van Laarhoven interface. For an alternative interface, supporting an opaque optic type, see
@<https://hackage.haskell.org/package/generic-optics generic-optics>@.
homepage: https://github.com/kcsongor/generic-lens
license: BSD3
license-file: LICENSE
author: Csongor Kiss
maintainer: kiss.csongor.kiss@gmail.com
category: Generics, Records, Lens
build-type: Simple
cabal-version: >= 1.10
Tested-With: GHC == 8.4.1, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.3, GHC == 9.0.1, GHC == 9.2.1
extra-source-files: examples/StarWars.hs
, examples/Examples.hs
, ChangeLog.md
library
exposed-modules: Data.Generics.Wrapped
, Data.Generics.Product
, Data.Generics.Product.Any
, Data.Generics.Product.Fields
, Data.Generics.Product.Param
, Data.Generics.Product.Positions
, Data.Generics.Product.Subtype
, Data.Generics.Product.Typed
, Data.Generics.Product.Types
, Data.Generics.Product.HList
, Data.Generics.Labels
, Data.Generics.Sum
, Data.Generics.Sum.Any
, Data.Generics.Sum.Constructors
, Data.Generics.Sum.Typed
, Data.Generics.Sum.Subtype
, Data.Generics.Internal.VL
, Data.Generics.Internal.VL.Lens
, Data.Generics.Internal.VL.Prism
, Data.Generics.Internal.VL.Iso
build-depends: base >= 4.11 && < 5
, generic-lens-core == 2.2.1.0
, profunctors
, text >= 1.2 && < 1.3 || >= 2.0 && < 2.1
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
test-suite inspection-tests
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules: Util Test24 Test88 Test25 Test40 Test62 Test63 CustomChildren
build-depends: base >= 4.11 && <= 5.0
, generic-lens
, lens
, profunctors
, inspection-testing >= 0.2
, HUnit
default-language: Haskell2010
ghc-options: -Wall
test-suite generic-lens-bifunctor
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Bifunctor.hs
build-depends: base >= 4.11 && <= 5.0
, generic-lens
, lens
, HUnit
default-language: Haskell2010
ghc-options: -Wall
test-suite generic-lens-syb-tree
type: exitcode-stdio-1.0
hs-source-dirs: test/syb
main-is: Tree.hs
build-depends: base >= 4.11 && <= 5.0
, generic-lens
, lens
, profunctors
, HUnit
default-language: Haskell2010
ghc-options: -Wall
test-suite doctests
default-language: Haskell2010
type: exitcode-stdio-1.0
ghc-options: -threaded
main-is: doctest.hs
build-depends: base >4 && <5, doctest
hs-source-dirs: examples

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun May 8 17:09:24 UTC 2022 - Peter Simons <psimons@suse.com>
- Update generic-lens to version 2.2.1.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sat Jan 22 22:53:12 UTC 2022 - Peter Simons <psimons@suse.com>

View File

@ -25,6 +25,7 @@ Summary: Generically derive traversals, lenses and prisms
License: BSD-3-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/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-generic-lens-core-devel
BuildRequires: ghc-profunctors-devel
@ -59,6 +60,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build