stack-0.1.5.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

System.Process.Run

Description

Reading from external 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 
-> 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 :: (MonadIO m, MonadLogger m) => Maybe (Path Abs Dir) -> EnvOverride -> String -> [String] -> m () Source

Like as System.Process.callProcess, but takes an optional working directory and environment override, and throws ProcessExitedUnsuccessfully if the process exits unsuccessfully. Inherits stdout and stderr.

callProcess' :: (MonadIO m, MonadLogger m) => (CreateProcess -> CreateProcess) -> Maybe (Path Abs Dir) -> EnvOverride -> String -> [String] -> m () Source

Like as System.Process.callProcess, but takes an optional working directory and environment override, and throws ProcessExitedUnsuccessfully if the process exits unsuccessfully. Inherits stdout and stderr.