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

Commits:

1 changed file:

Changes:

  • libraries/base/src/Data/List/NonEmpty.hs
    ... ... @@ -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