[Git][ghc/ghc][wip/unzip-deprecation] base: Push back deprecation of Data.List.NonEmpty.unzip
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Thu Jul 20 02:30:37 UTC 2023
Ben Gamari pushed to branch wip/unzip-deprecation at Glasgow Haskell Compiler / GHC
Commits:
2ac39111 by Ben Gamari at 2023-07-19T22:30:33-04:00
base: Push back deprecation of Data.List.NonEmpty.unzip
As noted in #23640, !10189 didn't quite make GHC 9.8 and therefore will
need to be pushed back by a release.
- - - - -
2 changed files:
- libraries/base/Data/List/NonEmpty.hs
- libraries/base/changelog.md
Changes:
=====================================
libraries/base/Data/List/NonEmpty.hs
=====================================
@@ -472,7 +472,7 @@ zipWith f ~(x :| xs) ~(y :| ys) = f x y :| List.zipWith f xs ys
-- | The 'unzip' function is the inverse of the 'zip' function.
unzip :: Functor f => f (a,b) -> (f a, f b)
unzip xs = (fst <$> xs, snd <$> xs)
-{-# DEPRECATED unzip "This function will be made monomorphic in base-4.22, consider switching to Data.Functor.unzip" #-}
+{-# DEPRECATED unzip "This function will be made monomorphic in base-4.23, consider switching to Data.Functor.unzip" #-}
-- | The 'nub' function removes duplicate elements from a list. In
-- particular, it keeps only the first occurrence of each element.
=====================================
libraries/base/changelog.md
=====================================
@@ -1,5 +1,8 @@
# Changelog for [`base` package](http://hackage.haskell.org/package/base)
+## 4.20.0.0 *TBA*
+ * Deprecate `Data.List.NonEmpty.unzip` ([CLC proposal #86](https://github.com/haskell/core-libraries-committee/issues/86))
+
## 4.19.0.0 *TBA*
* Add `{-# WARNING in "x-partial" #-}` to `Data.List.{head,tail}`.
Use `{-# OPTIONS_GHC -Wno-x-partial #-}` to disable it.
@@ -34,7 +37,6 @@
* Change codebuffers to use an unboxed implementation, while providing a compatibility layer using pattern synonyms. ([CLC proposal #134](https://github.com/haskell/core-libraries-committee/issues/134))
* Add nominal role annotations to SNat/SSymbol/SChar ([CLC proposal #170](https://github.com/haskell/core-libraries-committee/issues/170))
* Make `Semigroup`'s `stimes` specializable. ([CLC proposal #8](https://github.com/haskell/core-libraries-committee/issues/8))
- * Deprecate `Data.List.NonEmpty.unzip` ([CLC proposal #86](https://github.com/haskell/core-libraries-committee/issues/86))
## 4.18.0.0 *March 2023*
* Shipped with GHC 9.6.1
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2ac39111a5007932ea71fd4c66a6806c5721e1bd
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2ac39111a5007932ea71fd4c66a6806c5721e1bd
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230719/cfe383b9/attachment-0001.html>
More information about the ghc-commits
mailing list