[Git][ghc/ghc][master] docs: add since pragma to Data.List.NonEmpty.mapMaybe
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: cc1116e0 by Andrew Lelechenko at 2025-07-26T04:55:01-04:00 docs: add since pragma to Data.List.NonEmpty.mapMaybe - - - - - 1 changed file: - libraries/base/src/Data/List/NonEmpty.hs Changes: ===================================== libraries/base/src/Data/List/NonEmpty.hs ===================================== @@ -449,6 +449,8 @@ filter p = List.filter p . toList -- something of type @'Maybe' b@. If this is 'Nothing', no element -- is added on to the result list. If it is @'Just' b@, then @b@ is -- included in the result list. +-- +-- @since 4.23.0.0 mapMaybe :: (a -> Maybe b) -> NonEmpty a -> [b] mapMaybe f (x :| xs) = maybe id (:) (f x) $ List.mapMaybe f xs View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cc1116e06c4cc140f6efd9fb1317a587... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cc1116e06c4cc140f6efd9fb1317a587... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)