File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
ghcide/session-loader/Development/IDE/Session Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5
5
-- See https://github.com/haskell/ghcide/pull/697
6
6
module Development.IDE.Session.VersionCheck (ghcVersionChecker ) where
7
7
8
- import Data.Maybe
9
- import GHC.Check
8
+ import GHC.Check
10
9
-- Only use this for checking against the compile time GHC libDir!
11
10
-- Use getRuntimeGhcLibDir from hie-bios instead for everything else
12
11
-- otherwise binaries will not be distributable since paths will be baked into them
13
12
import qualified GHC.Paths
14
- import System.Environment
15
13
16
14
ghcVersionChecker :: GhcVersionChecker
17
- ghcVersionChecker = $$ (makeGhcVersionChecker (fromMaybe GHC.Paths. libdir <$> lookupEnv " NIX_GHC_LIBDIR " ))
15
+ ghcVersionChecker = $$ (makeGhcVersionChecker (return GHC.Paths. libdir))
You can’t perform that action at this time.
0 commit comments