Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit fdaf48b

Browse files
committed
fixup! install.hs: Make all available GHCs in PATH buildable
1 parent 0fa495a commit fdaf48b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ findInstalledGhcs = do
206206
(reverse hieVersions)
207207
availableGhcs <- getGhcPaths
208208
return
209-
-- filter out stack provided GHCs
210-
$ filter (not . isInfixOf ".stack" . snd)
211209
-- nub by version. knownGhcs takes precedence.
212-
$ nubBy ((==) `on` fst) (knownGhcs ++ availableGhcs)
210+
$ nubBy ((==) `on` fst)
211+
-- filter out stack provided GHCs
212+
$ filter (not . isInfixOf ".stack" . snd) (knownGhcs ++ availableGhcs)
213213

214214
cabalBuildHie :: VersionNumber -> Action ()
215215
cabalBuildHie versionNumber = do

0 commit comments

Comments
 (0)