Fix ghc-modi compat exe

This commit is contained in:
Daniel Gröber
2015-05-06 16:15:04 +02:00
parent d9bc2092ab
commit c1bdb2d52c
2 changed files with 6 additions and 5 deletions

View File

@@ -7,10 +7,13 @@ module Main where
import System.Exit
import System.Process
import System.FilePath
import System.Environment
import Paths_ghc_mod
main :: IO ()
main = do
args <- getArgs
h <- spawnProcess "ghc-mod" $ ["legacy-interactive"] ++ args
bindir <- getBinDir
h <- spawnProcess (bindir </> "ghc-mod") $ ["legacy-interactive"] ++ args
exitWith =<< waitForProcess h