From 31e043ec2705c41440de16b128913e5409923cac Mon Sep 17 00:00:00 2001 From: Tom Ellis Date: Sat, 18 Apr 2026 12:52:05 +0100 Subject: [PATCH 1/2] Add Haddocks with clearer delineation of sections --- System/Process.hs | 35 ++++++++++++++++++++++++++++++++++- changelog.md | 1 + 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/System/Process.hs b/System/Process.hs index 7de8b225..73af5f04 100644 --- a/System/Process.hs +++ b/System/Process.hs @@ -32,24 +32,57 @@ module System.Process ( -- * Running sub-processes + + -- ** General interface to process creation + + -- | @createProcess@ and @createProcess_@ are general interfaces + -- to process creation. To start with might instead want to use + -- one of the [simpler process creation functions](#g:simpler) + -- below. + createProcess, createProcess_, + + -- ** Creating a @CreateProcess@ + + -- | Once you have a @CreateProcess@ you can launch it with + -- 'createProcess' or one of the [simpler process creation + -- functions](#g:simpler). + shell, proc, + + -- ** @CreateProcess@ and associated types + CreateProcess(..), CmdSpec(..), StdStream(..), ProcessHandle, - -- ** Simpler functions for common tasks + -- * Simpler functions for common tasks #simpler# + + -- ** Call, the simplest way of launching a process + callCreateProcess, callProcess, callCommand, + + -- ** Spawn, obtaining a @ProcessHandle@ + spawnProcess, spawnCommand, + + -- ** Read, passing @stdin@ and obtaining @stdout@ + readCreateProcess, readProcess, + + -- ** Read with exit code, passing @stdin@, obtaining exit code, @stdout@ and @stderr@ + readCreateProcessWithExitCode, readProcessWithExitCode, + + -- ** Other + withCreateProcess, cleanupProcess, diff --git a/changelog.md b/changelog.md index 06e78731..45e8f7b4 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## next * Add `callCreateProcess` +* Improve Haddock ## 1.6.27.0 *March 2026* From a1bb4a1d64049b07a019eb70dd669ccfb793bd0d Mon Sep 17 00:00:00 2001 From: Tom Ellis Date: Sat, 18 Apr 2026 12:53:47 +0100 Subject: [PATCH 2/2] Release 1.6.28.0 --- changelog.md | 3 ++- process.cabal | 2 +- test/process-tests.cabal | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 45e8f7b4..d4ef861d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # Changelog for [`process` package](http://hackage.haskell.org/package/process) -## next +## 1.6.28.0 *April 2026* + * Add `callCreateProcess` * Improve Haddock diff --git a/process.cabal b/process.cabal index e0492502..ec25bd36 100644 --- a/process.cabal +++ b/process.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: process -version: 1.6.27.0 +version: 1.6.28.0 -- NOTE: Don't forget to update ./changelog.md license: BSD-3-Clause license-file: LICENSE diff --git a/test/process-tests.cabal b/test/process-tests.cabal index 92d08103..269b8af3 100644 --- a/test/process-tests.cabal +++ b/test/process-tests.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: process-tests -version: 1.6.27.0 +version: 1.6.28.0 license: BSD-3-Clause license-file: LICENSE maintainer: libraries@haskell.org @@ -18,7 +18,7 @@ source-repository head common process-dep build-depends: - process == 1.6.27.0 + process == 1.6.28.0 custom-setup setup-depends: