Skip to content

Commit 76221fb

Browse files
authored
Display output from initialising cradle in debug mode (#411)
1 parent ad43ad9 commit 76221fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: exe/Main.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import GHC hiding (def)
5353
import qualified GHC.Paths
5454

5555
import HIE.Bios
56+
import HIE.Bios.Types
5657

5758
-- Set the GHC libdir to the nix libdir if it's present.
5859
getLibdir :: IO FilePath
@@ -181,7 +182,8 @@ showEvent lock e = withLock lock $ print e
181182

182183
cradleToSession :: Cradle a -> IO HscEnvEq
183184
cradleToSession cradle = do
184-
cradleRes <- getCompilerOptions "" cradle
185+
let showLine s = putStrLn ("> " ++ s)
186+
cradleRes <- runCradle (cradleOptsProg cradle) showLine ""
185187
opts <- case cradleRes of
186188
CradleSuccess r -> pure r
187189
CradleFail err -> throwIO err

0 commit comments

Comments
 (0)