diff options
author | Bodigrim <andrew.lelechenko@gmail.com> | 2023-04-23 19:02:41 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-04-24 16:22:09 -0400 |
commit | 1a10f55657a4fc0391a726646552171d5bc7798f (patch) | |
tree | d04d641e7f705be8e51526a40c5eea61c5fb2906 | |
parent | 1338b7a3354ed77f6add43c1d33b776db53e7036 (diff) | |
download | haskell-1a10f55657a4fc0391a726646552171d5bc7798f.tar.gz |
Add since pragma to Data.Functor.unzip
-rw-r--r-- | libraries/base/Data/Functor.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/base/Data/Functor.hs b/libraries/base/Data/Functor.hs index e724691803..4148f76b75 100644 --- a/libraries/base/Data/Functor.hs +++ b/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 |