diff options
author | Bodigrim <andrew.lelechenko@gmail.com> | 2022-06-19 13:34:49 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-06-27 08:03:34 -0400 |
commit | 58530271e5e3044623b7e2343f2152ca0092b5a2 (patch) | |
tree | f31e8e06b7f65f72ae63e17491bc492419fc5802 /libraries/base/base.cabal | |
parent | 3fbab7572672200bcccb11cd0f0f93b01ae2580d (diff) | |
download | haskell-58530271e5e3044623b7e2343f2152ca0092b5a2.tar.gz |
Add Foldable1 and Bifoldable1 type classes
Approved by CLC in https://github.com/haskell/core-libraries-committee/issues/9
Instances roughly follow
https://hackage.haskell.org/package/semigroupoids-5.3.7/docs/Data-Semigroup-Foldable-Class.html#t:Foldable1
but the API of `Foldable1` was expanded in comparison to `semigroupoids`.
Compatibility shim is available from https://github.com/phadej/foldable1 (to be released).
Closes #13573.
Diffstat (limited to 'libraries/base/base.cabal')
-rw-r--r-- | libraries/base/base.cabal | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/base/base.cabal b/libraries/base/base.cabal index a8223bbce8..58e11e30f7 100644 --- a/libraries/base/base.cabal +++ b/libraries/base/base.cabal @@ -115,6 +115,7 @@ Library Control.Monad.Zip Data.Array.Byte Data.Bifoldable + Data.Bifoldable1 Data.Bifunctor Data.Bitraversable Data.Bits @@ -128,6 +129,7 @@ Library Data.Eq Data.Fixed Data.Foldable + Data.Foldable1 Data.Function Data.Functor Data.Functor.Classes |