Skip to content

Commit 704fdab

Browse files
sloorushpepeiborra
authored andcommitted
ghcide: remove redundant env NIX_GHC_LIBDIR (haskell#2819)
Co-authored-by: Pepe Iborra <[email protected]>
1 parent 7b81365 commit 704fdab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ghcide/session-loader/Development/IDE/Session/VersionCheck.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
-- See https://github.com/haskell/ghcide/pull/697
66
module Development.IDE.Session.VersionCheck (ghcVersionChecker) where
77

8-
import Data.Maybe
9-
import GHC.Check
8+
import GHC.Check
109
-- Only use this for checking against the compile time GHC libDir!
1110
-- Use getRuntimeGhcLibDir from hie-bios instead for everything else
1211
-- otherwise binaries will not be distributable since paths will be baked into them
1312
import qualified GHC.Paths
14-
import System.Environment
1513

1614
ghcVersionChecker :: GhcVersionChecker
17-
ghcVersionChecker = $$(makeGhcVersionChecker (fromMaybe GHC.Paths.libdir <$> lookupEnv "NIX_GHC_LIBDIR"))
15+
ghcVersionChecker = $$(makeGhcVersionChecker (return GHC.Paths.libdir))

0 commit comments

Comments
 (0)