4 Commits

5 changed files with 112 additions and 5 deletions

View File

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

3
foldl-1.4.18.tar.gz Normal file
View File

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

90
foldl.cabal Normal file
View File

@@ -0,0 +1,90 @@
Name: foldl
Version: 1.4.18
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.4 ,
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 >= 4.11.0.0 && < 5,
criterion,
foldl,
profunctors
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 >= 4.11.0.0 && < 5,
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 >= 4.11.0.0 && < 5,
doctest >= 0.16
GHC-Options: -threaded
Default-Language: Haskell2010

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Jan 16 02:58:22 UTC 2025 - Peter Simons <psimons@suse.com>
- Update foldl to version 1.4.18 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Fri Dec 20 05:14:50 UTC 2024 - Peter Simons <psimons@suse.com>
- Update foldl to version 1.4.18.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/foldl-1.4.18/src/CHANGELOG.md
-------------------------------------------------------------------
Thu Aug 29 16:00:20 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package ghc-foldl
#
# 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,12 +20,13 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.4.17
Version: 1.4.18
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
@@ -96,6 +97,7 @@ 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