Opened 10 years ago

Closed 9 years ago

Last modified 9 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

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 10 years ago.
darcs patch

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by twanvl

Attachment: concatMapM.patch added

darcs patch

comment:1 Changed 10 years ago by igloo

difficulty: Unknown
Milestone: Not GHC

comment:2 Changed 9 years ago by igloo

Resolution: wontfix
Status: newclosed

This proposal seems to be abandoned

comment:3 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:4 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.