Skip to content

Commit 537d089

Browse files
committed
Incorporate Borgvall's suggestion
The same implementation should work for old GHC.
1 parent ec4e1ef commit 537d089

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Control/Parallel/Strategies.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ rpar x = case (par# x) of { _ -> Done x }
447447
-- > rparWith rpar = rpar
448448
-- > rparWith rseq = rpar
449449
rparWith :: Strategy a -> Strategy a
450-
#if __GLASGOW_HASKELL__ >= 702
451450
-- The intermediate `Lift` box is necessary, in order to avoid a built-in
452451
-- `rseq` in `rparWith`. In particular, we want rparWith r0 = r0, not
453452
-- rparWith r0 = rpar.
@@ -459,9 +458,6 @@ rparWith s a = do
459458
r = runEval (Lift <$> s a)
460459

461460
data Lift a = Lift a
462-
#else
463-
rparWith s a = do l <- rpar (s a); return (case l of Done x -> x)
464-
#endif
465461

466462
-- --------------------------------------------------------------------------
467463
-- Strategy combinators for Traversable data types

0 commit comments

Comments
 (0)