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

bios cradle: Allow with-ghc to be specified programmatically #401

Open
sol opened this issue May 9, 2023 · 3 comments
Open

bios cradle: Allow with-ghc to be specified programmatically #401

sol opened this issue May 9, 2023 · 3 comments

Comments

@sol
Copy link
Member

sol commented May 9, 2023

Similar to how you can specify dependencies programmatically by writing to $HIE_BIOS_DEPS I would like to be able to specify with-ghc programmatically by writing to e.g. $HIE_BIOS_WITH_GHC.

@fendor
Copy link
Collaborator

fendor commented Jun 16, 2023

Unfortunately, what you are proposing is too late for HLS. The GHC version is cradle wide, but what you are describing is per Component. See #274 for a discussion.

@sol
Copy link
Member Author

sol commented Jun 17, 2023

@fendor just to make sure that I understand your point correctly, are you saying that instead of

cradle:
  bios:
    shell: ... # determine options and path to ghc

we would need something like

cradle:
  bios:
    shell: ... # determine options
    with-ghc:
      shell: ... # determine path to ghc

(That is, we need the user to specify two separate commands, one for options, and one for the GHC version.).

Is that where you are heading at?

@fendor
Copy link
Collaborator

fendor commented Jun 17, 2023

Yes, exactly!

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

2 participants