From 40081bf1535e11d20d52874249402ff392835e97 Mon Sep 17 00:00:00 2001 From: Zubin Duggal Date: Wed, 29 Apr 2026 12:55:53 +0530 Subject: [PATCH 1/2] Stub out runProcess.c on wasm32 The Haskell-side callers of this file are already stubbed out on this platform: - runInteractiveProcess: https://github.com/haskell/process/blob/e1be5b65eb7a9af6eca567b9f22cb54e7066e634/System/Process/Posix.hs#L274-L291 - terminateProcess, getProcessExitCode, waitForProcess: https://github.com/haskell/process/blob/e1be5b65eb7a9af6eca567b9f22cb54e7066e634/System/Process.hs#L936-L945 Fixes #357 --- cbits/posix/runProcess.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cbits/posix/runProcess.c b/cbits/posix/runProcess.c index cb23f9e8..55dd916a 100644 --- a/cbits/posix/runProcess.c +++ b/cbits/posix/runProcess.c @@ -5,6 +5,11 @@ ------------------------------------------------------------------------- */ #include "runProcess.h" + +// Callers are stubbed out on wasm32: runInteractiveProcess (System/Process/Posix.hs), +// terminateProcess, getProcessExitCode, waitForProcess (System/Process.hs). +#if !defined(wasm32_HOST_ARCH) + #include "common.h" #include @@ -271,3 +276,5 @@ waitForProcess (ProcHandle handle, int *pret) return -1; } + +#endif // !wasm32_HOST_ARCH From 1eb12cdce647b34824402fce2259fb66f9b23a38 Mon Sep 17 00:00:00 2001 From: Zubin Duggal Date: Fri, 10 Apr 2026 01:29:37 +0530 Subject: [PATCH 2/2] Bump base upper bound to < 4.24 for GHC 10.0 (cherry picked from commit 72e5b7c75a17f543262674259b2ebf4a3bda390c) --- process.cabal | 2 +- test/process-tests.cabal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/process.cabal b/process.cabal index ec25bd36..df26c287 100644 --- a/process.cabal +++ b/process.cabal @@ -94,7 +94,7 @@ library ghc-options: -Wall - build-depends: base >= 4.12.0.0 && < 4.23, + build-depends: base >= 4.12.0.0 && < 4.24, directory >= 1.1 && < 1.4, deepseq >= 1.1 && < 1.6 diff --git a/test/process-tests.cabal b/test/process-tests.cabal index 269b8af3..7191f8cf 100644 --- a/test/process-tests.cabal +++ b/test/process-tests.cabal @@ -22,7 +22,7 @@ common process-dep custom-setup setup-depends: - base >= 4.10 && < 4.23, + base >= 4.10 && < 4.24, directory >= 1.1 && < 1.4, filepath >= 1.2 && < 1.6, Cabal >= 2.4 && < 3.18,