haskell / hie-bios

Set up a GHC API session for various Haskell Projects
https://hackage.haskell.org/package/hie-bios
BSD 3-Clause "New" or "Revised" License
181 stars 63 forks source link

Add support for bios multi-cradles #437

Open iteratee opened 4 months ago

iteratee commented 4 months ago

We currently don't have a way to ask a bios cradle if it supports multiple components. So we just trust that if the GHC version is new enough and multiple component loading is requested, that the bios program supports it.

fendor commented 4 months ago

Hi, thank you for your PR!

I am worried that passing multiple filepaths to the bios command might break existing bios scripts, since they may assume it contains only exactly one filepath. We could pass in the extra filepaths in a separate environment variable HIE_BIOS_EXTRA_ARGS , then bios scripts cannot break accidentally. What do you think?