stack-0.1.8.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

System.Process.Run

Description

Run sub-processes.

Synopsis

Documentation

runIn Source

Arguments

:: forall (m :: * -> *). (MonadLogger m, MonadIO m, MonadBaseControl IO m) 
=> Path Abs Dir

directory to run in

-> FilePath

command to run

-> EnvOverride 
-> [String]

command line arguments

-> Maybe Text

optional additional error message

-> m () 

Run the given command in the given directory, inheriting stdout and stderr.

If it exits with anything but success, prints an error and then calls exitWith to exit the program.

callProcess Source

Arguments

:: (MonadIO m, MonadLogger m) 
=> Maybe (Path Abs Dir)

optional directory to run in

-> EnvOverride 
-> String

command to run

-> [String]

command line arguments

-> m () 

Like callProcess, but takes an optional working directory and environment override, and throws ProcessExitedUnsuccessfully if the process exits unsuccessfully.

Inherits stdout and stderr.

callProcess' Source

Arguments

:: (MonadIO m, MonadLogger m) 
=> (CreateProcess -> CreateProcess) 
-> Maybe (Path Abs Dir)

optional directory to run in

-> EnvOverride 
-> String

command to run

-> [String]

command line arguments

-> m () 

Like callProcess, but takes an optional working directory and environment override, and throws ProcessExitedUnsuccessfully if the process exits unsuccessfully.

Inherits stdout and stderr.