Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2042 closed proposal (wontfix)

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 (1)

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

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by twanvl

darcs patch

comment:1 Changed 6 years ago by igloo

  • Difficulty set to Unknown
  • Milestone set to Not GHC

comment:2 Changed 6 years ago by igloo

  • Resolution set to wontfix
  • Status changed from new to closed

This proposal seems to be abandoned

comment:3 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 6 years ago by simonmar

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