packages feed

monad-parallel 0.7.1.4 → 0.7.2

raw patch · 2 files changed

+14/−2 lines, 2 files

Files

Control/Monad/Parallel.hs view
@@ -124,6 +124,18 @@ mapM :: MonadParallel m => (a -> m b) -> [a] -> m [b] mapM f list = sequence (map f list) +-- | Like 'Control.Monad.mapM_', but applying the function to the individual list items in parallel.+mapM_ :: MonadParallel m => (a -> m b) -> [a] -> m ()+mapM_ f list = sequence_ (map f list)++-- | Like 'Control.Monad.forM', but applying the function to the individual list items in parallel.+forM :: MonadParallel m => [a] -> (a -> m b) -> m [b]+forM list f = sequence (map f list)++-- | Like 'Control.Monad.forM_', but applying the function to the individual list items in parallel.+forM_ :: MonadParallel m => [a] -> (a -> m b) -> m ()+forM_ list f = sequence_ (map f list)+ -- | Like 'Control.Monad.replicateM', but executing the action multiple times in parallel. replicateM :: MonadParallel m => Int -> m a -> m [a] replicateM n action = sequence (replicate n action)
monad-parallel.cabal view
@@ -1,5 +1,5 @@ Name:                monad-parallel-Version:             0.7.1.4+Version:             0.7.2 Cabal-Version:       >= 1.10 Build-Type:          Simple Synopsis:            Parallel execution of monadic computations@@ -12,7 +12,7 @@    License:             BSD3 License-file:        BSD3-LICENSE.txt-Copyright:           (c) 2010-2014 Mario Blazevic+Copyright:           (c) 2010-2015 Mario Blazevic Author:              Mario Blazevic Maintainer:          blamario@yahoo.com Homepage:            http://trac.haskell.org/SCC/wiki/monad-parallel