[commit: packages/Cabal] ghc-head: Use System.Process instead of System.Cmd. (3ca65fd)

git at git.haskell.org git at git.haskell.org
Mon Aug 26 23:27:47 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=3ca65fdddd6b73e60662c22c0a19d7966e9c22d6

>---------------------------------------------------------------

commit 3ca65fdddd6b73e60662c22c0a19d7966e9c22d6
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date:   Sat Jul 6 11:33:38 2013 +0200

    Use System.Process instead of System.Cmd.
    
    System.Cmd is deprecated in process-1.2.


>---------------------------------------------------------------

3ca65fdddd6b73e60662c22c0a19d7966e9c22d6
 Cabal/Cabal.cabal                  |    2 +-
 Cabal/Distribution/Simple/Utils.hs |    4 +---
 cabal-install/cabal-install.cabal  |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/Cabal/Cabal.cabal b/Cabal/Cabal.cabal
index 0ce9cfb..c4de937 100644
--- a/Cabal/Cabal.cabal
+++ b/Cabal/Cabal.cabal
@@ -122,7 +122,7 @@ library
     deepseq    >= 1.3 && < 1.4,
     filepath   >= 1   && < 1.4,
     directory  >= 1   && < 1.3,
-    process    >= 1   && < 1.3,
+    process    >= 1.0.1.1 && < 1.3,
     time       >= 1.1 && < 1.5,
     containers >= 0.1 && < 0.6,
     array      >= 0.1 && < 0.5,
diff --git a/Cabal/Distribution/Simple/Utils.hs b/Cabal/Distribution/Simple/Utils.hs
index 4a9ff2e..1d2cfad 100644
--- a/Cabal/Distribution/Simple/Utils.hs
+++ b/Cabal/Distribution/Simple/Utils.hs
@@ -159,8 +159,6 @@ import System.Directory
     , doesDirectoryExist, doesFileExist, removeFile, findExecutable )
 import System.Environment
     ( getProgName )
-import System.Cmd
-    ( rawSystem )
 import System.Exit
     ( exitWith, ExitCode(..) )
 import System.FilePath
@@ -192,7 +190,7 @@ import Distribution.Version
     (Version(..))
 
 import Control.Exception (IOException, evaluate, throwIO)
-import System.Process (runProcess)
+import System.Process (rawSystem, runProcess)
 
 import Control.Concurrent (forkIO)
 import System.Process (runInteractiveProcess, waitForProcess)
diff --git a/cabal-install/cabal-install.cabal b/cabal-install/cabal-install.cabal
index 6993ffd..d55e6b0 100644
--- a/cabal-install/cabal-install.cabal
+++ b/cabal-install/cabal-install.cabal
@@ -123,7 +123,7 @@ executable cabal
         mtl        >= 2.0      && < 3,
         network    >= 1        && < 3,
         pretty     >= 1        && < 1.2,
-        process    >= 1        && < 1.3,
+        process    >= 1.0.1.1  && < 1.3,
         random     >= 1        && < 1.1,
         stm        >= 2.0      && < 3,
         time       >= 1.1      && < 1.5,





More information about the ghc-commits mailing list