projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffc032
)
`par` should be infixr 0
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 27 Oct 2006 13:08:00 +0000
(13:08 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 27 Oct 2006 13:08:00 +0000
(13:08 +0000)
Alas, I didn't spot this due to lack of testing, and the symptom is
that an expression like x `par` y `seq z will have exactly the wrong
parallelism properties. The workaround is to add parantheses.
I think we could push this to the 6.6 branch.
Control/Parallel.hs
patch
|
blob
|
history
diff --git
a/Control/Parallel.hs
b/Control/Parallel.hs
index
21c9fed
..
504d92b
100644
(file)
--- a/
Control/Parallel.hs
+++ b/
Control/Parallel.hs
@@
-30,6
+30,8
@@
import PrelBase
import PrelErr ( parError )
import PrelGHC ( parGlobal#, parLocal#, parAt#, parAtAbs#, parAtRel#, parAtForNow# )
+infixr 0 `par`
+
{-# INLINE parGlobal #-}
{-# INLINE parLocal #-}
{-# INLINE parAt #-}