[Git][ghc/ghc][master] Add since pragma to Data.Functor.unzip

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Mon Apr 24 20:22:24 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
1a10f556 by Bodigrim at 2023-04-24T16:22:09-04:00
Add since pragma to Data.Functor.unzip

- - - - -


1 changed file:

- libraries/base/Data/Functor.hs


Changes:

=====================================
libraries/base/Data/Functor.hs
=====================================
@@ -161,7 +161,10 @@ infixl 4 $>
 ($>) :: Functor f => f a -> b -> f b
 ($>) = flip (<$)
 
-unzip :: Functor f => f (a,b) -> (f a, f b)
+-- | Generalization of @Data.List.@'Data.List.unzip'.
+--
+-- @since 4.19.0.0
+unzip :: Functor f => f (a, b) -> (f a, f b)
 unzip xs = (fst <$> xs, snd <$> xs)
 
 -- | @'void' value@ discards or ignores the result of evaluation, such



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1a10f55657a4fc0391a726646552171d5bc7798f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1a10f55657a4fc0391a726646552171d5bc7798f
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/20230424/75ff0e8c/attachment.html>


More information about the ghc-commits mailing list