[Git][ghc/ghc][wip/clc-86] only base commits
Melanie Brown (@mixphix)
gitlab at gitlab.haskell.org
Sun Mar 26 13:34:35 UTC 2023
Melanie Brown pushed to branch wip/clc-86 at Glasgow Haskell Compiler / GHC
Commits:
092658a3 by Melanie Phoenix at 2023-03-26T09:34:19-04:00
only base commits
- - - - -
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 GHC 9.14, 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/092658a355608041c329b77a964183fe726c30b2
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/092658a355608041c329b77a964183fe726c30b2
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/0bfa9ad7/attachment.html>
More information about the ghc-commits
mailing list