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.Core

Defines Cmd, the core API of Procex.

  • 1 type
  • 9 values
  • Packageprocex-0.3.3
  • Exports10
  • LanguageHaskell2010
  • LicenceMIT
  • SourceCore.hs
newtypenewtype Cmd
#

A command. You can execute this with run' or run.

Instances3QuickCmd, QuickCmdArg
valuemakeCmd' :: ByteString -> Cmd
#

Make a Cmd from the path to an executable. Does not take PATH into account. See makeCmd for a version that provides some sensible defaults, like forwarding stdin, stdout, stderr.

valueunIOCmd :: IO Cmd -> Cmd
#

Embeds the IO action inside the command, such that the IO action is executed when the command is executed.

valuerunReplace :: Cmd -> IO ()
#

Runs the specified commands and replaces the current process with it. This will not return unless an error occurs while executing the process.

valuepassFd
  1. :: (Fd, Fd)

    (new, old)

  2. -> Cmd
  3. -> Cmd
#

Bind a fd in the new process to a fd available now. If you try to bind an fd already bound, it will simply replace the older binding.

valuepassArgFd :: Fd -> Cmd -> Cmd
#

Pass an argument of the form /proc/self/fd/<n> to the process, where n is an fd which is a duplicate of the fd provided here.