Ticket #2042 (closed proposal: wontfix)

Opened 4 years ago

Last modified 3 years ago

Add concatMapM to Control.Monad

Reported by: twanvl Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/base Version: 6.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I have written this function over and over again for different projects. Time to add it to the base libraries:

-- | The 'concatMapM' function generalizes 'concatMap' to arbitrary monads.
concatMapM        :: (Monad m) => (a -> m [b]) -> [a] -> m [b]
concatMapM f xs   =  liftM concat (mapM f xs)

Attachments

concatMapM.patch Download (7.7 KB) - added by twanvl 4 years ago.
darcs patch

Change History

Changed 4 years ago by twanvl

darcs patch

Changed 4 years ago by igloo

  • difficulty set to Unknown
  • milestone set to Not GHC

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to wontfix

This proposal seems to be abandoned

Changed 3 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 3 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.