From: Simon Marlow Date: Wed, 1 Mar 2006 14:09:31 +0000 (+0000) Subject: fix compilation with older GHCs X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=1f8596c23de907107ac4ef6374156de43b77ecb6 fix compilation with older GHCs --- diff --git a/ghc/compiler/main/SysTools.lhs b/ghc/compiler/main/SysTools.lhs index 5c434d0..eee3e1a 100644 --- a/ghc/compiler/main/SysTools.lhs +++ b/ghc/compiler/main/SysTools.lhs @@ -86,6 +86,8 @@ import Foreign import CString ( CString, peekCString ) #endif +import Text.Regex + #if __GLASGOW_HASKELL__ < 603 -- rawSystem comes from libghccompat.a in stage1 import Compat.RawSystem ( rawSystem ) @@ -95,7 +97,6 @@ import System.IO.Error ( ioeGetErrorType ) import System.Process ( runInteractiveProcess, getProcessExitCode ) import System.IO ( hSetBuffering, hGetLine, BufferMode(..) ) import Control.Concurrent( forkIO, newChan, readChan, writeChan ) -import Text.Regex import Data.Char ( isSpace ) import FastString ( mkFastString ) import SrcLoc ( SrcLoc, mkSrcLoc, noSrcSpan, mkSrcSpan )