[commit: packages/parallel] master: Make rpar's type signature consistent with rseq & co (9f7debb)
git at git.haskell.org
git at git.haskell.org
Sat Jan 2 08:16:51 UTC 2016
Repository : ssh://git@git.haskell.org/parallel
On branch : master
Link : http://git.haskell.org/packages/parallel.git/commitdiff/9f7debb0f800ff0181035ae304e01f6537bfdb92
>---------------------------------------------------------------
commit 9f7debb0f800ff0181035ae304e01f6537bfdb92
Author: Maximilian Tagher <feedback.tagher at gmail.com>
Date: Sun May 31 11:00:11 2015 -0700
Make rpar's type signature consistent with rseq & co
It seems inconsistent that `r0`, `rseq`, `rdeepseq` and `rparWith` are defined using the `Strategy` type synonym, but `rpar` is not. In the [module exports](https://github.com/haskell/parallel/blob/2ee8494e5bb5228a6a878d6e0e0b63316492174c/Control/Parallel/Strategies.hs#L52) it's commented as being of type `Strategy a`, just not in the type signature itself for some reason.
>---------------------------------------------------------------
9f7debb0f800ff0181035ae304e01f6537bfdb92
Control/Parallel/Strategies.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Control/Parallel/Strategies.hs b/Control/Parallel/Strategies.hs
index 61e5c5f..9e06037 100644
--- a/Control/Parallel/Strategies.hs
+++ b/Control/Parallel/Strategies.hs
@@ -380,7 +380,7 @@ rdeepseq x = do rseq (rnf x); return x
-- == rdeepseq
-- | 'rpar' sparks its argument (for evaluation in parallel).
-rpar :: a -> Eval a
+rpar :: Strategy a
#if __GLASGOW_HASKELL__ >= 702
rpar x = Eval $ \s -> spark# x s
#else
More information about the ghc-commits
mailing list