X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FSysTools.lhs;h=43de6d16bedb5fb9e2a5fc02f31cee8989f2ff11;hb=da9b43e1c5d143bfcc5f6a669001e94cf7654a30;hp=874387fc88c690b9e28740eabfca104aa13a7c37;hpb=046ee54f048ddd721dcee41916d6a6f68db3b15b;p=ghc-hetmet.git diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs index 874387f..43de6d1 100644 --- a/compiler/main/SysTools.lhs +++ b/compiler/main/SysTools.lhs @@ -51,7 +51,6 @@ import Data.IORef import Data.Int import Control.Monad import System.Exit -import System.Cmd import System.Environment import System.IO import SYSTEM_IO_ERROR as IO @@ -82,9 +81,11 @@ import Text.Regex #if __GLASGOW_HASKELL__ < 603 -- rawSystem comes from libghccompat.a in stage1 -import Compat.RawSystem ( rawSystem ) +import Compat.RawSystem ( rawSystem ) +import System.Cmd ( system ) import GHC.IOBase ( IOErrorType(..) ) #else +import System.Cmd ( rawSystem, system ) import System.Process ( runInteractiveProcess, getProcessExitCode ) import Control.Concurrent( forkIO, newChan, readChan, writeChan ) import Data.Char ( isSpace )