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

ghcup provision (or ghcup setup-env) etc. #989

Open
hasufell opened this issue Jan 26, 2024 · 2 comments
Open

ghcup provision (or ghcup setup-env) etc. #989

hasufell opened this issue Jan 26, 2024 · 2 comments

Comments

@hasufell
Copy link
Member

To discuss: instead of running ghcup install ghc 9.2.8 && ghcup install ghc 9.4.8 && ... one could imagine a way to declaratively specify the whole toolchain setting and let ghcup execute that description as a whole, e.g.

GHC: [9.2.8, 9.4.8*, 9.6.3]
Stack: [latest*]
Cabal: [latest*]
HLS: [recommended*]

or some-such. There's some design-space to explore (e.g. where to read the data/file from), whether to support some form of .ghcup file in PWD, etc.

@runeksvendsen
Copy link
Collaborator

As discussed privately with @hasufell: note that whatever DSL the above example is parsed into would also be useful for #64. In the integration test, we could imagine a test case that installs the above tools/versions and asserts something about the resulting environment, and in that context it would be useful to have a DSL for expressing a set of tools to install/set.

@runeksvendsen
Copy link
Collaborator

One could also imagine a new command ghcup shell which drops the user into a shell in which the tools specified by .ghcup are available (ie. instead of installing them globally).

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

No branches or pull requests

2 participants