Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
cc1116e0
by Andrew Lelechenko at 2025-07-26T04:55:01-04:00
1 changed file:
Changes:
| ... | ... | @@ -449,6 +449,8 @@ filter p = List.filter p . toList |
| 449 | 449 | -- something of type @'Maybe' b@. If this is 'Nothing', no element
|
| 450 | 450 | -- is added on to the result list. If it is @'Just' b@, then @b@ is
|
| 451 | 451 | -- included in the result list.
|
| 452 | +--
|
|
| 453 | +-- @since 4.23.0.0
|
|
| 452 | 454 | mapMaybe :: (a -> Maybe b) -> NonEmpty a -> [b]
|
| 453 | 455 | mapMaybe f (x :| xs) = maybe id (:) (f x) $ List.mapMaybe f xs
|
| 454 | 456 |