We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7b5ab commit 9b3f3bfCopy full SHA for 9b3f3bf
ghcide/session-loader/Development/IDE/Session/VersionCheck.hs
@@ -5,13 +5,11 @@
5
-- See https://github.com/haskell/ghcide/pull/697
6
module Development.IDE.Session.VersionCheck (ghcVersionChecker) where
7
8
-import Data.Maybe
9
-import GHC.Check
+import GHC.Check
10
-- Only use this for checking against the compile time GHC libDir!
11
-- Use getRuntimeGhcLibDir from hie-bios instead for everything else
12
-- otherwise binaries will not be distributable since paths will be baked into them
13
import qualified GHC.Paths
14
-import System.Environment
15
16
ghcVersionChecker :: GhcVersionChecker
17
-ghcVersionChecker = $$(makeGhcVersionChecker (fromMaybe GHC.Paths.libdir <$> lookupEnv "NIX_GHC_LIBDIR"))
+ghcVersionChecker = $$(makeGhcVersionChecker (return GHC.Paths.libdir))
0 commit comments