spawnProcess doesn't exist before 7.8

This commit is contained in:
Daniel Gröber 2015-05-20 12:05:43 +02:00
parent a2e4a5d683
commit f779a778fb
1 changed files with 2 additions and 1 deletions

View File

@ -15,5 +15,6 @@ main :: IO ()
main = do
args <- getArgs
bindir <- getBinDir
h <- spawnProcess (bindir </> "ghc-mod") $ ["legacy-interactive"] ++ args
(_, _, _, h) <-
createProcess $ proc (bindir </> "ghc-mod") $ ["legacy-interactive"] ++ args
exitWith =<< waitForProcess h