`par` should be infixr 0
authorSimon Marlow <simonmar@microsoft.com>
Fri, 27 Oct 2006 13:08:00 +0000 (13:08 +0000)
committerSimon 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

index 21c9fed..504d92b 100644 (file)
@@ -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 #-}