This patch is taken from upstream. It fixes a test to work with GHC 8.6. The paths have been slightly altered to work with the release tarball. See . From e20f81c8060208e4fb038e8f0e0668b41d72a6fb Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 31 Aug 2019 14:12:34 -0400 Subject: [PATCH] Use a case statement instead of pattern-matching in case_test_diamond This avoids the need for a MonadFail instance. Closes #66 --- monad-par/tests/ParTests_shared.hs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/ParTests_shared.hs b/tests/ParTests_shared.hs index 31f438d..b2de50c 100644 --- a/tests/ParTests_shared.hs +++ b/tests/ParTests_shared.hs @@ -109,12 +109,15 @@ case_test_diamond :: Assertion case_test_diamond = 9 @=? (m :: Int) where m = runPar $ do - [a,b,c,d] <- sequence [new,new,new,new] - fork $ do x <- get a; put b (x+1) - fork $ do x <- get a; put c (x+2) - fork $ do x <- get b; y <- get c; put d (x+y) - fork $ do put a 3 - get d + abcd <- sequence [new,new,new,new] + case abcd of + [a,b,c,d] -> do + fork $ do x <- get a; put b (x+1) + fork $ do x <- get a; put c (x+2) + fork $ do x <- get b; y <- get c; put d (x+y) + fork $ do put a 3 + get d + _ -> error "Oops" -- | Violate IVar single-assignment: -- -- 2.23.0 ss='form'>
AgeCommit message (Expand)Author
2022-12-18doc: Update URLs for the manual and cookbook translations....* doc/htmlxref.cnf: Update URLs for "guix" and "guix-cookbook". Ludovic Courtès
2022-12-18doc: Add guile-netlink to 'htmlxref.cnf'....* doc/htmlxref.cnf: Add guile-netlink. Ludovic Courtès
2022-08-05doc: Fix Guix manual URLs in 'htmlxref.cnf'....Fixes a regression introduced in 868da34d54365023223a4ff7520043ba55ad64e8. * doc/htmlxref.cnf (GUIX): Remove "/guix". Ludovic Courtès
2022-06-16doc: Remove obsolete comment from htmlxref.cnf....This is follow up to <https://issues.guix.gnu.org/55290>. * doc/htmlxref.cnf (geiser): Delete obsolete comment. Maxim Cournoyer
2022-04-08doc: Fix cookbook URLs in htmlxref.cnf....Reported by Greg Hogan <code@greghogan.com>. * doc/htmlxref.cnf (GUIX_ROOT): New variable. (GUIX, GUIX_COOKBOOK): Adjust. Ludovic Courtès
2021-10-04doc: Update htmlxref.cnf....Update and fix broken references to cuirass, git, and guix-cookbook. * doc/htmlxref.cnf: Update from Texinfo. Factorize Guix manuals. (cuirass, git, guix-cookbook, guix-cookbook.de, guix-cookbook.fr): New entries. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Sarah Morgensen
2021-04-24doc: Fix cross-reference URL to translated manual....* doc/htmlxref.cnf: Fix translated manual URL. Julien Lepiller