extra-1.5.1: Extra functions I use.

System.Process.Extra

Description

Extra functions for creating processes. Specifically variants that automatically check the ExitCode and capture the 'stdout'\/'stderr' handles.

Synopsis

# Documentation

system_ :: String -> IO () Source #

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

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

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