extra-0.4: Extra functions I use.

Safe HaskellNone

System.Process.Extra

Synopsis

Documentation

system_ :: String -> IO ()Source

A version of system that throws an error if the ExitCode is not ExitSuccess.

systemOutput :: String -> IO (ExitCode, String)Source

A version of system that also captures the output, both stdout and stderr. Returns a pair of the exit code and the output.

systemOutput_ :: String -> IO StringSource

A version of system that captures the output (both stdout and stderr) and throws an error if the ExitCode is not ExitSuccess.