hie-bios icon indicating copy to clipboard operation
hie-bios copied to clipboard

bios cradle: Allow `with-ghc` to be specified programmatically

Open sol opened this issue 2 years ago • 3 comments
trafficstars

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.

sol avatar May 09 '23 07:05 sol

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 https://github.com/haskell/hie-bios/pull/274 for a discussion.

fendor avatar Jun 16 '23 16:06 fendor

@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?

sol avatar Jun 17 '23 08:06 sol

Yes, exactly!

fendor avatar Jun 17 '23 09:06 fendor