From 8cc74c8eac2acdf6c3c1170e2211bf19740ef796 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 6 Oct 1997 17:28:03 +0000 Subject: [PATCH] [project @ 1997-10-06 17:28:03 by sof] forkST cleanup --- ghc/lib/ghc/ConcBase.lhs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ghc/lib/ghc/ConcBase.lhs b/ghc/lib/ghc/ConcBase.lhs index 20d0346..2efd689 100644 --- a/ghc/lib/ghc/ConcBase.lhs +++ b/ghc/lib/ghc/ConcBase.lhs @@ -48,9 +48,7 @@ forkST (ST action) = ST $ \ s -> let (r, new_s) = action s in - new_s `fork__` (r, s) - where - fork__ x y = case (fork# x) of { 0# -> parError; _ -> y } + new_s `fork` (r, s) forkPrimIO :: PrimIO a -> PrimIO a forkPrimIO = forkST -- 1.7.10.4