[commit: testsuite] master: Don't use deprecated System.Cmd (b370622)
Ian Lynagh
igloo at earth.li
Fri Feb 15 23:58:05 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b370622746f1769181191e223d80f05c882feb18
>---------------------------------------------------------------
commit b370622746f1769181191e223d80f05c882feb18
Author: Ian Lynagh <ian at well-typed.com>
Date: Fri Feb 15 22:34:35 2013 +0000
Don't use deprecated System.Cmd
>---------------------------------------------------------------
tests/ghci/shell.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/ghci/shell.hs b/tests/ghci/shell.hs
index 5b4fdd1..4c08a8f 100644
--- a/tests/ghci/shell.hs
+++ b/tests/ghci/shell.hs
@@ -2,8 +2,8 @@
-- scripts. We're assuming that sh is in the path and that it
-- is a Bourne-compatible shell.
-import System.Cmd
import System.Exit
+import System.Process (rawSystem)
shell :: String -> IO ExitCode
shell s = rawSystem "sh" ["-c", s]
More information about the ghc-commits
mailing list