Merge `getProgramInvocationOutput` and `getProgramInvocationOutputAndErrors`
commitb8c6c1bfb7e590da2c3fdfa5cd6d7ddac056023c
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 5 Aug 2017 13:19:41 +0000 (5 15:19 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 5 Aug 2017 13:19:41 +0000 (5 15:19 +0200)
tree476669196da25be09ead1a9248495c80a3665af4
parent14c25d703a84e4c30f191f6a0b501d2c34a74479
Merge `getProgramInvocationOutput` and `getProgramInvocationOutputAndErrors`

This reduces code-duplication by sharing common code-paths.

Specifically, when `progInvokePathEnv` support was added, this wasn't
updated in `getProgramInvocationOutputAndErrors`.
Cabal/Distribution/Simple/Program/Run.hs