From 5320e2162cf444b87d8c081200474b18fda5eba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hr=C4=8Dka?= Date: Tue, 16 Mar 2021 10:52:05 +0000 Subject: [PATCH 1/9] Added the README --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..10f1f63 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ghc-indexed-traversable + +The ghc-indexed-traversable package From df91ec283ab5fdffdc63fb94eb675b2c392ca7cc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 17 Mar 2021 01:45:43 +0800 Subject: [PATCH 2/9] import #1933216 --- .gitignore | 1 + ghc-indexed-traversable.spec | 121 +++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 123 insertions(+) create mode 100644 .gitignore create mode 100644 ghc-indexed-traversable.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07ee894 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/indexed-traversable-0.1.1.tar.gz diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec new file mode 100644 index 0000000..ed0c807 --- /dev/null +++ b/ghc-indexed-traversable.spec @@ -0,0 +1,121 @@ +# generated by cabal-rpm-2.0.8 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name indexed-traversable +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 0.1.1 +Release: 1%{?dist} +Summary: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex + +License: BSD +Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +# End cabal-rpm sources + +# Begin cabal-rpm deps: +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-prof +BuildRequires: ghc-transformers-prof +# End cabal-rpm deps + +%description +This package provides three useful generalizations: + +'class Functor f => FunctorWithIndex i f | f -> i' (imap) + +'class Foldable f => FoldableWithIndex i f | f -> i' (ifoldMap) + +'class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => +TraversableWithIndex i t | t -> i' (itraverse) + +This package contains instances for types in GHC boot libraries. +For some additional instances see indexed-traversable-instances. + +The keys package provides similar functionality, +but uses (associated) 'TypeFamilies' instead of 'FunctionalDependencies'. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development +files. + + +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description doc +This package provides the Haskell %{pkg_name} library +documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files +%doc Changelog.md + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Tue Feb 16 2021 Jens Petersen - 0.1.1-1 +- spec file generated by cabal-rpm-2.0.8 diff --git a/sources b/sources new file mode 100644 index 0000000..2520252 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (indexed-traversable-0.1.1.tar.gz) = 63d6c305f33d97f34c4efaeaede0e5c06c5ff95df9c45307e849de54693c0f93ec017d0e163c64e14bbb498bb2b02a3d54d1cd6a4e75992c8f96609bb73c8dbc From c2f750797d268d1e2a4dc0dc7b016b5bd7e8d9b9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 00:51:49 +0000 Subject: [PATCH 3/9] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-indexed-traversable.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec index ed0c807..36e461a 100644 --- a/ghc-indexed-traversable.spec +++ b/ghc-indexed-traversable.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} Version: 0.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex License: BSD @@ -117,5 +117,8 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Feb 16 2021 Jens Petersen - 0.1.1-1 - spec file generated by cabal-rpm-2.0.8 From 416a6fb005bdddfa46638ca597dc86088f1b0294 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:12 +0800 Subject: [PATCH 4/9] refresh to cabal-rpm-2.0.9 --- ghc-indexed-traversable.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec index 36e461a..2fbe41b 100644 --- a/ghc-indexed-traversable.spec +++ b/ghc-indexed-traversable.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.8 +# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name indexed-traversable @@ -59,6 +59,7 @@ files. %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch +Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library From 0f207b0014ecc82c602cde848d98532c655407bb Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 5 Aug 2021 19:08:34 +0800 Subject: [PATCH 5/9] revise .cabal --- ghc-indexed-traversable.spec | 2 + indexed-traversable-0.1.1.cabal | 91 +++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 indexed-traversable-0.1.1.cabal diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec index 2fbe41b..c465802 100644 --- a/ghc-indexed-traversable.spec +++ b/ghc-indexed-traversable.spec @@ -13,6 +13,7 @@ License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -81,6 +82,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/indexed-traversable-0.1.1.cabal b/indexed-traversable-0.1.1.cabal new file mode 100644 index 0000000..b5941c6 --- /dev/null +++ b/indexed-traversable-0.1.1.cabal @@ -0,0 +1,91 @@ +cabal-version: 1.12 +name: indexed-traversable +version: 0.1.1 +x-revision: 1 +build-type: Simple +license: BSD2 +license-file: LICENSE +category: Data +maintainer: Oleg Grenrus +author: Edward Kmett +synopsis: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex +description: + This package provides three useful generalizations: + . + @ + class Functor f => FunctorWithIndex i f | f -> i where + \ imap :: (i -> a -> b) -> f a -> f b + @ + . + @ + class Foldable f => FoldableWithIndex i f | f -> i where + \ ifoldMap :: Monoid m => (i -> a -> m) -> f a -> m + @ + . + @ + class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => TraversableWithIndex i t | t -> i where + \ itraverse :: Applicative f => (i -> a -> f b) -> t a -> f (t b) + @ + . + This package contains instances for types in GHC boot libraries. + For some additional instances see [indexed-traversable-instances](https://hackage.haskell.org/package/indexed-traversable-instances). + . + The [keys](https://hackage.haskell.org/package/keys) package provides similar functionality, + but uses (associated) @TypeFamilies@ instead of @FunctionalDependencies@. + +extra-source-files: Changelog.md +tested-with: + GHC ==7.0.4 + || ==7.2.2 + || ==7.4.2 + || ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.5 + || ==8.8.4 + || ==8.10.2 + +source-repository head + type: git + location: https://github.com/haskellari/indexed-traversable + subdir: indexed-traversable + +library + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: src + other-modules: + GhcExts + WithIndex + + exposed-modules: + Data.Foldable.WithIndex + Data.Functor.WithIndex + Data.Traversable.WithIndex + + build-depends: + array >=0.3.0.2 && <0.6 + , base >=4.3 && <4.16 + , containers >=0.4.0.0 && <0.7 + , transformers >=0.3.0.0 && <0.7 + + if !impl(ghc >=7.8) + build-depends: tagged >=0.8.5 && <0.9 + + if !impl(ghc >=7.10) + build-depends: void >=0.7.2 && <0.8 + + if !impl(ghc >=8.0) + build-depends: + base-orphans >=0.8.3 && <0.9 + , semigroups >=0.18.4 && <0.20 + , transformers-compat >=0.6.6 && <0.8 + + if (impl(ghc >=7.0) && impl(ghc <7.6)) + build-depends: ghc-prim + + if (impl(ghc >=7.0) && impl(ghc <7.2)) + build-depends: generic-deriving ==1.14.* From 1d86e67989e15ba0a58def01d35430067255f0cc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 6 Aug 2021 11:29:15 +0800 Subject: [PATCH 6/9] bump release --- ghc-indexed-traversable.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec index c465802..797a4e2 100644 --- a/ghc-indexed-traversable.spec +++ b/ghc-indexed-traversable.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} Version: 0.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex License: BSD @@ -120,6 +120,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Fri Aug 06 2021 Jens Petersen - 0.1.1-3 +- rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 7b9558bf044868d13269d1698fa075822d40df78 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 05:06:22 +0000 Subject: [PATCH 7/9] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-indexed-traversable.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec index 797a4e2..a889ea4 100644 --- a/ghc-indexed-traversable.spec +++ b/ghc-indexed-traversable.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} Version: 0.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex License: BSD @@ -120,6 +120,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Aug 06 2021 Jens Petersen - 0.1.1-3 - rebuild From 8e95f38b84fd164ba1ab19d356f3e8680f88aca0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jun 2022 13:52:42 +0800 Subject: [PATCH 8/9] update to 0.1.2 --- .gitignore | 1 + ghc-indexed-traversable.spec | 7 +++++-- ...able-0.1.1.cabal => indexed-traversable-0.1.2.cabal | 10 ++++++---- sources | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) rename indexed-traversable-0.1.1.cabal => indexed-traversable-0.1.2.cabal (93%) diff --git a/.gitignore b/.gitignore index 07ee894..f00add3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /indexed-traversable-0.1.1.tar.gz +/indexed-traversable-0.1.2.tar.gz diff --git a/ghc-indexed-traversable.spec b/ghc-indexed-traversable.spec index a889ea4..ed12529 100644 --- a/ghc-indexed-traversable.spec +++ b/ghc-indexed-traversable.spec @@ -5,8 +5,8 @@ %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} -Version: 0.1.1 -Release: 4%{?dist} +Version: 0.1.2 +Release: 1%{?dist} Summary: FunctorWithIndex, FoldableWithIndex, TraversableWithIndex License: BSD @@ -120,6 +120,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Tue Jun 07 2022 Jens Petersen - 0.1.2-1 +- https://hackage.haskell.org/package/indexed-traversable-0.1.2/changelog + * Thu Jan 20 2022 Fedora Release Engineering - 0.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/indexed-traversable-0.1.1.cabal b/indexed-traversable-0.1.2.cabal similarity index 93% rename from indexed-traversable-0.1.1.cabal rename to indexed-traversable-0.1.2.cabal index b5941c6..cdcd465 100644 --- a/indexed-traversable-0.1.1.cabal +++ b/indexed-traversable-0.1.2.cabal @@ -1,6 +1,6 @@ cabal-version: 1.12 name: indexed-traversable -version: 0.1.1 +version: 0.1.2 x-revision: 1 build-type: Simple license: BSD2 @@ -46,7 +46,9 @@ tested-with: || ==8.4.4 || ==8.6.5 || ==8.8.4 - || ==8.10.2 + || ==8.10.7 + || ==9.0.1 + || ==9.2.1 source-repository head type: git @@ -68,7 +70,7 @@ library build-depends: array >=0.3.0.2 && <0.6 - , base >=4.3 && <4.16 + , base >=4.3 && <4.17 , containers >=0.4.0.0 && <0.7 , transformers >=0.3.0.0 && <0.7 @@ -81,7 +83,7 @@ library if !impl(ghc >=8.0) build-depends: base-orphans >=0.8.3 && <0.9 - , semigroups >=0.18.4 && <0.20 + , semigroups >=0.18.4 && <0.21 , transformers-compat >=0.6.6 && <0.8 if (impl(ghc >=7.0) && impl(ghc <7.6)) diff --git a/sources b/sources index 2520252..256082e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (indexed-traversable-0.1.1.tar.gz) = 63d6c305f33d97f34c4efaeaede0e5c06c5ff95df9c45307e849de54693c0f93ec017d0e163c64e14bbb498bb2b02a3d54d1cd6a4e75992c8f96609bb73c8dbc +SHA512 (indexed-traversable-0.1.2.tar.gz) = 38d2dfc0e45e3eafa1e8827c7f27a64e296902f0193cb61939af74ad6845be067024ac32278a6b5bca1976a2d3ada5820a7a6879d7bf9000730450714a5df9c4 From ae871b5a800bcc0f598a9f2236674b8fdf1ee79e Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 21:46:07 +0300 Subject: [PATCH 9/9] Remove unnecessary files --- README.md | 3 --- sources | 1 - 2 files changed, 4 deletions(-) delete mode 100644 README.md delete mode 100644 sources diff --git a/README.md b/README.md deleted file mode 100644 index 10f1f63..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-indexed-traversable - -The ghc-indexed-traversable package diff --git a/sources b/sources deleted file mode 100644 index 256082e..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (indexed-traversable-0.1.2.tar.gz) = 38d2dfc0e45e3eafa1e8827c7f27a64e296902f0193cb61939af74ad6845be067024ac32278a6b5bca1976a2d3ada5820a7a6879d7bf9000730450714a5df9c4