[Git][ghc/ghc][wip/clc-86] Deprecate Data.List.NonEmpty.unzip
Melanie Brown (@mixphix)
gitlab at gitlab.haskell.org
Sun Mar 26 14:34:36 UTC 2023
Melanie Brown pushed to branch wip/clc-86 at Glasgow Haskell Compiler / GHC
Commits:
294f2101 by Melanie Phoenix at 2023-03-26T10:34:09-04:00
Deprecate Data.List.NonEmpty.unzip
- - - - -
2 changed files:
- libraries/base/Data/List/NonEmpty.hs
- libraries/base/changelog.md
Changes:
=====================================
libraries/base/Data/List/NonEmpty.hs
=====================================
@@ -472,6 +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" #-}
-- | The 'nub' function removes duplicate elements from a list. In
-- particular, it keeps only the first occurrence of each element.
=====================================
libraries/base/changelog.md
=====================================
@@ -16,6 +16,7 @@
([CLC proposal #57](https://github.com/haskell/core-libraries-committee/issues/57))
* Add `Eq` and `Ord` instances for `SSymbol`, `SChar`, and `SNat`.
([CLC proposal #148](https://github.com/haskell/core-libraries-committee/issues/148))
+ * Deprecate `Data.List.NonEmpty.unzip` ([CLC proposal #86](https://github.com/haskell/core-libraries-committee/issues/86))
## 4.18.0.0 *TBA*
* Shipped with GHC 9.6.1
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/294f2101d3f93b60e881bab2efada73f9dd35c89
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/294f2101d3f93b60e881bab2efada73f9dd35c89
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/20230326/e86c9b3e/attachment.html>
More information about the ghc-commits
mailing list