We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad43ad9 commit 76221fbCopy full SHA for 76221fb
exe/Main.hs
@@ -53,6 +53,7 @@ import GHC hiding (def)
53
import qualified GHC.Paths
54
55
import HIE.Bios
56
+import HIE.Bios.Types
57
58
-- Set the GHC libdir to the nix libdir if it's present.
59
getLibdir :: IO FilePath
@@ -181,7 +182,8 @@ showEvent lock e = withLock lock $ print e
181
182
183
cradleToSession :: Cradle a -> IO HscEnvEq
184
cradleToSession cradle = do
- cradleRes <- getCompilerOptions "" cradle
185
+ let showLine s = putStrLn ("> " ++ s)
186
+ cradleRes <- runCradle (cradleOptsProg cradle) showLine ""
187
opts <- case cradleRes of
188
CradleSuccess r -> pure r
189
CradleFail err -> throwIO err
0 commit comments