Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for GHC versions that do not have Stackage snapshots #569

Open
noughtmare opened this issue Jun 18, 2023 · 0 comments
Open

Support for GHC versions that do not have Stackage snapshots #569

noughtmare opened this issue Jun 18, 2023 · 0 comments

Comments

@noughtmare
Copy link

I would like to summon GHC 9.6.2 projects, but that is not possible yet. So, I've quickly looked into the source code and what kind of changes that would require. Adding the metadata seems simple for the most part, except that each GHC version seems to need a latestLts Stackage snapshot associated with it.

I could change latestLts to return a Maybe Text rather than just Text to represent missing Stackage snapshots. But that raises the question what should happen when Stackage versions are missing. I guess the script command could simply show an error message, but the problem of summoning a project with multiple GHC versions of which one is not supported seems more difficult to solve. We could silently leave that version out, show a warning, or refuse to summon the whole project with an error.

What would be the best way to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant