Skip to content

Commit

Permalink
Fix runGhcCmd when NoImplicitPrelude is on
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Feb 14, 2022
1 parent fecba77 commit bc909bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exe/Wrapper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ launchHaskellLanguageServer parsedArgs = do
callProcess e args
#else
let Cradle { cradleOptsProg = CradleAction { runGhcCmd } } = cradle
ghcBinary <- (fmap trim <$> runGhcCmd ["-v0", "-package-env=-", "-e", "putStr =<< System.Environment.getExecutablePath"])
ghcBinary <- (fmap trim <$> runGhcCmd ["-v0", "-package-env=-", "-e", "Prelude.putStr Prelude.=<< System.Environment.getExecutablePath"])
>>= cradleResult "Failed to get project GHC executable path"
libdir <- HieBios.getRuntimeGhcLibDir cradle
>>= cradleResult "Failed to get project GHC libdir path"
Expand Down

0 comments on commit bc909bc

Please sign in to comment.