HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleprocess-extras-0.7.4Haskell2010

System.Process.Common

  • 4 classes
  • 6 values
classclass ProcessMaker a where
#
Instances2ProcessMaker
classclass ListLikeIO text char => ListLikeProcessIO text char where
#

Process IO is based on the ListLikeIO class from the ListLike package

Methods

Instances7ListLikeProcessIO, …
classclass (IsString text, Monoid text, ListLike text char) => ProcessText text char
#
Instances5ProcessText
classclass Monoid result => ProcessResult text result | result -> text where
#

Methods

Instances3ProcessResult
valuereadProcessWithExitCode
  1. :: ListLikeProcessIO text char
  2. => FilePath

    command to run

  3. -> [String]

    any arguments

  4. -> text

    standard input

  5. -> IO (ExitCode, text, text)

    exitcode, stdout, stderr

#

Like readProcessWithExitCode, but with generalized input and output type. Aside from the usual text-like types, the output can be a list of Chunk a. This lets you process the chunks received from stdout and stderr lazil, in the order they are received, as well as the exit code. Utilities to handle Chunks are provided in System.Process.ListLike.

Orphan instances

2 instances