Fix ghc-modi compat exe
This commit is contained in:
parent
d9bc2092ab
commit
c1bdb2d52c
@ -190,10 +190,8 @@ usage =
|
|||||||
\ - boot\n\
|
\ - boot\n\
|
||||||
\ Internal command used by the emacs frontend.\n\
|
\ Internal command used by the emacs frontend.\n\
|
||||||
\\n\
|
\\n\
|
||||||
\ - legacy-interactive [OPTIONS...]\n\
|
\ - legacy-interactive\n\
|
||||||
\ ghc-modi compatibility mode.\n\
|
\ ghc-modi compatibility mode.\n"
|
||||||
\ *Options*\n"
|
|
||||||
++ (unlines $ indent <$> optionUsage indent globalArgSpec)
|
|
||||||
where
|
where
|
||||||
indent = (" "++)
|
indent = (" "++)
|
||||||
|
|
||||||
|
@ -7,10 +7,13 @@ module Main where
|
|||||||
|
|
||||||
import System.Exit
|
import System.Exit
|
||||||
import System.Process
|
import System.Process
|
||||||
|
import System.FilePath
|
||||||
import System.Environment
|
import System.Environment
|
||||||
|
import Paths_ghc_mod
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
args <- getArgs
|
args <- getArgs
|
||||||
h <- spawnProcess "ghc-mod" $ ["legacy-interactive"] ++ args
|
bindir <- getBinDir
|
||||||
|
h <- spawnProcess (bindir </> "ghc-mod") $ ["legacy-interactive"] ++ args
|
||||||
exitWith =<< waitForProcess h
|
exitWith =<< waitForProcess h
|
||||||
|
Loading…
Reference in New Issue
Block a user