diff options
author | Pepe Iborra <pepeiborra@gmail.com> | 2020-01-19 14:18:55 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-08 10:23:23 -0500 |
commit | 95741ea1f93c6d9bac055eb620c8bcda0ec5c72d (patch) | |
tree | eb4508922fbc95d341e9863ba271604a97e401df /hadrian | |
parent | bd6667665f160f07550b25e9c80fbc197ae2f642 (diff) | |
download | haskell-95741ea1f93c6d9bac055eb620c8bcda0ec5c72d.tar.gz |
Update to hie-bios 0.3.2 style program cradle
Diffstat (limited to 'hadrian')
-rwxr-xr-x | hadrian/hie-bios | 4 | ||||
-rw-r--r-- | hadrian/src/Rules.hs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/hadrian/hie-bios b/hadrian/hie-bios index 741537ea34..db06589c2b 100755 --- a/hadrian/hie-bios +++ b/hadrian/hie-bios @@ -3,5 +3,7 @@ # When run, this program will output a list of arguments which are necessary to # load the GHC library component into GHCi. The program is used by `ghcide` in # order to automatically set up the correct GHC API session for a project. -echo $(TERM=dumb CABFLAGS=-v0 $PWD/hadrian/build.cabal.sh tool-args -q --build-root=.hie-bios --flavour=ghc-in-ghci) -ighc ghc/Main.hs +TERM=dumb CABFLAGS=-v0 $PWD/hadrian/build.cabal.sh tool-args -q --build-root=.hie-bios --flavour=ghc-in-ghci > $HIE_BIOS_OUTPUT +echo -ighc >> $HIE_BIOS_OUTPUT +echo "ghc/Main.hs" >> $HIE_BIOS_OUTPUT diff --git a/hadrian/src/Rules.hs b/hadrian/src/Rules.hs index 08f8b571f6..9b9f7557f3 100644 --- a/hadrian/src/Rules.hs +++ b/hadrian/src/Rules.hs @@ -60,7 +60,7 @@ toolArgsTarget = do -- Find out the arguments that are needed to load a module into the -- session arg_list <- interpret fake_target getArgs - liftIO $ putStrLn (intercalate " " arg_list) + liftIO $ putStrLn (intercalate "\n" arg_list) allStages :: [Stage] allStages = [minBound .. maxBound] |