From 7db56f982909a1eef6455ee8916470aa9ba14d5c Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Fri, 27 Oct 2006 13:08:00 +0000 Subject: [PATCH] `par` should be infixr 0 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Control/Parallel.hs b/Control/Parallel.hs index 21c9fed..504d92b 100644 --- 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 #-} -- 1.7.10.4