Skip to content

Commit

Permalink
Add code comment about GHCup.Platform.getStackGhcBuilds and notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Jan 1, 2025
1 parent 8064dda commit 9f1ba4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,10 @@ getGhcBuilds = do
Just ghcBuild -> pure [ghcBuild]
Nothing -> determineGhcBuild
where
-- The GHCup project is also interested in the algorithm below, as it copies
-- it at GHCup.Platform.getStackGhcBuilds. If you change this algorithm, it
-- would be a courtesy to bring that to the attention of the GHCup project
-- maintainers.
determineGhcBuild = do
-- TODO: a more reliable, flexible, and data driven approach would be to
-- actually download small "test" executables (from setup-info) that link to
Expand Down

0 comments on commit 9f1ba4e

Please sign in to comment.