From 4f4b83d261691fd6872218c9d68976cafb6b3267 Mon Sep 17 00:00:00 2001 From: Pepe Iborra <pepeiborra@gmail.com> Date: Sun, 19 Jan 2020 14:18:55 +0000 Subject: [PATCH] Update to hie-bios 0.3.2 style program cradle --- hadrian/hie-bios | 3 ++- hadrian/src/Rules.hs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hadrian/hie-bios b/hadrian/hie-bios index 741537ea347..f7324bc2bdb 100755 --- a/hadrian/hie-bios +++ b/hadrian/hie-bios @@ -3,5 +3,6 @@ # 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 diff --git a/hadrian/src/Rules.hs b/hadrian/src/Rules.hs index 3f6397fdccc..f24cf8853f0 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] -- GitLab