forked from pool/ghc-foldl
osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-foldl revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-foldl?expand=0&rev=71
This commit is contained in:
commit
982537a6bb
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
foldl-1.4.16.tar.gz
Normal file
3
foldl-1.4.16.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:49ea38e26c13b821d1ab5ec9e5449b53d189a422d5a69aa2056375b9c0876ba1
|
||||
size 24558
|
89
foldl.cabal
Normal file
89
foldl.cabal
Normal file
@ -0,0 +1,89 @@
|
||||
Name: foldl
|
||||
Version: 1.4.16
|
||||
x-revision: 1
|
||||
Cabal-Version: >=1.10
|
||||
Build-Type: Simple
|
||||
License: BSD3
|
||||
License-File: LICENSE
|
||||
Copyright: 2013 Gabriella Gonzalez
|
||||
Author: Gabriella Gonzalez
|
||||
Maintainer: GenuineGabriella@gmail.com
|
||||
Bug-Reports: https://github.com/Gabriella439/Haskell-Foldl-Library/issues
|
||||
Synopsis: Composable, streaming, and efficient left folds
|
||||
Description: This library provides strict left folds that stream in constant
|
||||
memory, and you can combine folds using @Applicative@ style to derive new
|
||||
folds. Derived folds still traverse the container just once and are often as
|
||||
efficient as hand-written folds.
|
||||
Category: Control
|
||||
Extra-Source-Files:
|
||||
CHANGELOG.md
|
||||
README.md
|
||||
Source-Repository head
|
||||
Type: git
|
||||
Location: https://github.com/Gabriella439/Haskell-Foldl-Library
|
||||
|
||||
Library
|
||||
HS-Source-Dirs: src
|
||||
Build-Depends:
|
||||
base >= 4.11.0.0 && < 5 ,
|
||||
bytestring >= 0.9.2.1 && < 0.13,
|
||||
random >= 1.2 && < 1.3 ,
|
||||
primitive < 0.10,
|
||||
text >= 0.11.2.0 && < 2.2 ,
|
||||
transformers >= 0.2.0.0 && < 0.7 ,
|
||||
vector >= 0.7 && < 0.14,
|
||||
containers >= 0.5.0.0 && < 0.8 ,
|
||||
unordered-containers < 0.3 ,
|
||||
hashable < 1.6 ,
|
||||
contravariant < 1.6 ,
|
||||
profunctors >= 4.3.2 && < 5.7 ,
|
||||
semigroupoids >= 1.0 && < 6.1 ,
|
||||
comonad >= 4.0 && < 6
|
||||
if impl(ghc < 8.0)
|
||||
Build-Depends:
|
||||
semigroups >= 0.17 && < 1.20
|
||||
Exposed-Modules:
|
||||
Control.Foldl,
|
||||
Control.Foldl.ByteString,
|
||||
Control.Foldl.NonEmpty
|
||||
Control.Foldl.Text,
|
||||
Control.Scanl
|
||||
Other-Modules:
|
||||
Control.Foldl.Optics
|
||||
Control.Foldl.Internal
|
||||
Control.Foldl.Util.Vector
|
||||
Control.Foldl.Util.MVector
|
||||
GHC-Options: -O2 -Wall
|
||||
Default-Language: Haskell2010
|
||||
|
||||
Benchmark Foldl
|
||||
Type: exitcode-stdio-1.0
|
||||
HS-Source-Dirs: bench
|
||||
Main-Is: Foldl.hs
|
||||
Build-Depends:
|
||||
base,
|
||||
criterion,
|
||||
foldl
|
||||
GHC-Options: -O2 -Wall -rtsopts -with-rtsopts=-T
|
||||
Default-Language: Haskell2010
|
||||
|
||||
Benchmark Scanl
|
||||
Type: exitcode-stdio-1.0
|
||||
HS-Source-Dirs: bench
|
||||
Main-Is: Scanl.hs
|
||||
Build-Depends:
|
||||
base,
|
||||
criterion,
|
||||
foldl
|
||||
GHC-Options: -O2 -Wall -rtsopts -with-rtsopts=-T
|
||||
Default-Language: Haskell2010
|
||||
|
||||
Test-Suite doctest
|
||||
Type: exitcode-stdio-1.0
|
||||
HS-Source-Dirs: test
|
||||
Main-Is: doctest.hs
|
||||
Build-Depends:
|
||||
base,
|
||||
doctest >= 0.16
|
||||
GHC-Options: -threaded
|
||||
Default-Language: Haskell2010
|
41
ghc-foldl.changes
Normal file
41
ghc-foldl.changes
Normal file
@ -0,0 +1,41 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 21 03:35:03 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update foldl to version 1.4.16 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 2 06:37:40 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update foldl to version 1.4.16.
|
||||
1.4.16
|
||||
|
||||
- Add [`Control.Foldl.postmapM`]
|
||||
|
||||
1.4.15
|
||||
|
||||
- Add `Cosieve` and `Costrong` instances
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 1 14:05:14 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update foldl to version 1.4.15 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 1 16:48:25 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update foldl to version 1.4.15.
|
||||
Upstream has not updated the file "CHANGELOG.md" since the last
|
||||
release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 17:06:48 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 22 02:40:44 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Add foldl at version 1.4.14 revision 2.
|
||||
|
128
ghc-foldl.spec
Normal file
128
ghc-foldl.spec
Normal file
@ -0,0 +1,128 @@
|
||||
#
|
||||
# spec file for package ghc-foldl
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global pkg_name foldl
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
%bcond_with tests
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 1.4.16
|
||||
Release: 0
|
||||
Summary: Composable, streaming, and efficient left folds
|
||||
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-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-comonad-devel
|
||||
BuildRequires: ghc-comonad-prof
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-containers-prof
|
||||
BuildRequires: ghc-contravariant-devel
|
||||
BuildRequires: ghc-contravariant-prof
|
||||
BuildRequires: ghc-hashable-devel
|
||||
BuildRequires: ghc-hashable-prof
|
||||
BuildRequires: ghc-primitive-devel
|
||||
BuildRequires: ghc-primitive-prof
|
||||
BuildRequires: ghc-profunctors-devel
|
||||
BuildRequires: ghc-profunctors-prof
|
||||
BuildRequires: ghc-random-devel
|
||||
BuildRequires: ghc-random-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-semigroupoids-devel
|
||||
BuildRequires: ghc-semigroupoids-prof
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-text-prof
|
||||
BuildRequires: ghc-transformers-devel
|
||||
BuildRequires: ghc-transformers-prof
|
||||
BuildRequires: ghc-unordered-containers-devel
|
||||
BuildRequires: ghc-unordered-containers-prof
|
||||
BuildRequires: ghc-vector-devel
|
||||
BuildRequires: ghc-vector-prof
|
||||
ExcludeArch: %{ix86}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-doctest-devel
|
||||
BuildRequires: ghc-doctest-prof
|
||||
%endif
|
||||
|
||||
%description
|
||||
This library provides strict left folds that stream in constant memory, and you
|
||||
can combine folds using 'Applicative' style to derive new folds.
|
||||
Derived folds still traverse the container just once and are often as efficient
|
||||
as hand-written folds.
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
%package -n ghc-%{pkg_name}-doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
Requires: ghc-filesystem
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n ghc-%{pkg_name}-doc
|
||||
This package provides the Haskell %{pkg_name} library documentation.
|
||||
|
||||
%package -n ghc-%{pkg_name}-prof
|
||||
Summary: Haskell %{pkg_name} profiling library
|
||||
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
||||
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
||||
|
||||
%description -n ghc-%{pkg_name}-prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pkg_name}-%{version}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
||||
%install
|
||||
%ghc_lib_install
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc CHANGELOG.md README.md
|
||||
|
||||
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||
%license LICENSE
|
||||
|
||||
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user