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

Moduleprocex-0.3.3Haskell2010

Procex.Process

This module wraps over the API in Procex.Core in a user-friendly way.

  • 1 type
  • 12 values
  • Packageprocex-0.3.3
  • Exports13
  • LanguageHaskell2010
  • LicenceMIT
  • SourceProcess.hs
valuemakeCmd :: ByteString -> Cmd
#

A version of makeCmd' that resolves the path according to PATH and passes through stdin, stdout and stderr (unless overrided).

valuepipeArgIn
  1. :: Fd

    The fd the command will write to

  2. -> Cmd

    The command that will write to the fd

  3. -> Cmd

    The command you're modifying

  4. -> Cmd
#

Pass an argument of the form /proc/self/fd/<n> to the process, where n is the reader end of a pipe which the command writes to through the specified fd.

valuepipeArgOut
  1. :: Fd

    The fd the command will read from

  2. -> Cmd

    The command that will read from the fd

  3. -> Cmd

    The command you're modifying

  4. -> Cmd
#

Pass an argument of the form /proc/self/fd/<n> to the process, where n is the writer end of a pipe which the command reads from through the specified fd.

valuepipeIn
  1. :: Fd

    The writing end

  2. -> Fd

    The reading end

  3. -> Cmd

    The writer command

  4. -> Cmd

    The reader command

  5. -> Cmd
#

Pipes from the first command to the second command

valuepipeOut
  1. :: Fd

    The reading end

  2. -> Fd

    The writing end

  3. -> Cmd

    The reader command

  4. -> Cmd

    The writer command

  5. -> Cmd
#

Pipes from the second command to the first command

valuepipeArgHIn :: (Async ProcessStatus -> Handle -> IO ()) -> Cmd -> Cmd
#

Pass an argument of the form /proc/self/fd/<n> to the process, where n is the reader end of a pipe where the writer end is passed to a Haskell function.

valuepipeArgHOut :: (Async ProcessStatus -> Handle -> IO ()) -> Cmd -> Cmd
#

Pass an argument of the form /proc/self/fd/<n> to the process, where n is the writer end of a pipe where the reader end is passed to a Haskell function.