[commit: parallel] master: Fix documentation bug (noticed by Tsuyoshi Ito on the libraries (ebe95a3)
Simon Marlow
marlowsd at gmail.com
Tue May 31 13:51:22 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/parallel
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/ebe95a34344c5f52cc22134bac31da54ee4496dd
>---------------------------------------------------------------
commit ebe95a34344c5f52cc22134bac31da54ee4496dd
Author: Simon Marlow <marlowsd at gmail.com>
Date: Tue May 31 12:10:28 2011 +0100
Fix documentation bug (noticed by Tsuyoshi Ito on the libraries
mailing list).
>---------------------------------------------------------------
Control/Parallel/Strategies.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Control/Parallel/Strategies.hs b/Control/Parallel/Strategies.hs
index b37a3f1..18c9668 100644
--- a/Control/Parallel/Strategies.hs
+++ b/Control/Parallel/Strategies.hs
@@ -463,7 +463,7 @@ parListWHNF xs = go xs `pseq` return xs
-- | A combination of 'parList' and 'map', encapsulating a common pattern:
--
--- > parMap strat f = withStrategy strat . map f
+-- > parMap strat f = withStrategy (parList strat) . map f
--
parMap :: Strategy b -> (a -> b) -> [a] -> [b]
parMap strat f = (`using` parList strat) . map f
More information about the Cvs-libraries
mailing list