[commit: packages/Cabal] ghc-head: Flesh out the Program run code to cover all cases (50af0d7)
git at git.haskell.org
git at git.haskell.org
Mon Aug 26 23:29:28 CEST 2013
Repository : ssh://git@git.haskell.org/Cabal
On branch : ghc-head
Link : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=50af0d77b544fa2a9b68d3c1ca6f40a32e35ac33
>---------------------------------------------------------------
commit 50af0d77b544fa2a9b68d3c1ca6f40a32e35ac33
Author: Duncan Coutts <duncan at community.haskell.org>
Date: Sat Aug 10 21:21:10 2013 +0100
Flesh out the Program run code to cover all cases
Previously the runProgramInvocation impl only covered the common special
cases that we currently use. In particular it did not support env vars
or changing the workind directory.
Also change the ProgramInvocation { progInvokeEnv } to allow unsetting
env vars, not just setting them to new values.
This stuff would be better if we could use createProcess for all cases
but that doesn't yet support running programs in the foreground with
proper ctl-C handling (only rawSystem currently supports that).
>---------------------------------------------------------------
50af0d77b544fa2a9b68d3c1ca6f40a32e35ac33
Cabal/Distribution/Simple/Hugs.hs | 1 +
Cabal/Distribution/Simple/Program/Run.hs | 83 +++++++++++++++++++--------
Cabal/Distribution/Simple/Program/Script.hs | 11 +++-
Cabal/Distribution/Simple/Test.hs | 4 +-
Cabal/Distribution/Simple/Utils.hs | 24 +++++---
5 files changed, 85 insertions(+), 38 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 50af0d77b544fa2a9b68d3c1ca6f40a32e35ac33
More information about the ghc-commits
mailing list