Skip to content

Commit 9f1ba4e

Browse files
committed
Add code comment about GHCup.Platform.getStackGhcBuilds and notification
1 parent 8064dda commit 9f1ba4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Stack/Setup.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,10 @@ getGhcBuilds = do
16941694
Just ghcBuild -> pure [ghcBuild]
16951695
Nothing -> determineGhcBuild
16961696
where
1697+
-- The GHCup project is also interested in the algorithm below, as it copies
1698+
-- it at GHCup.Platform.getStackGhcBuilds. If you change this algorithm, it
1699+
-- would be a courtesy to bring that to the attention of the GHCup project
1700+
-- maintainers.
16971701
determineGhcBuild = do
16981702
-- TODO: a more reliable, flexible, and data driven approach would be to
16991703
-- actually download small "test" executables (from setup-info) that link to

0 commit comments

Comments
 (0)