-
Notifications
You must be signed in to change notification settings - Fork 63
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
How should bios cradles run ghc? #215
Comments
I was coming around to request this, well spotted @bubba ! A bios cradle currently has the following shape:
where each component has the type
The path to GHC is not necessarily known statically, so we need a program to compute it, and it should be the same for the entire session - we don't want a different GHC per component or per file! With that in mind, I propose adding a new optional field to the bios cradle section, which if present is used to compute the ghc path:
|
@pepeiborra The important bit is to document what kind of command line options this ghc must accept to be functional. E.g. currently we need it to accept |
@fendor that too. But I came here because I want my bios scripts to be able to set the path to ghc, that's the important feature! |
This a further piece of work from #207:
Cabal and stack cradles can run GHC to get the libdir from
cabal exec ghc -- --print-libdir
andstack exec ghc -- --print-libdir
respectively.Direct cradles just use the
ghc
on the path.But what about bios programs? What ghc are they using exactly? There should be a way for the bios program to report this, either via the program or in a hie.yaml file
The text was updated successfully, but these errors were encountered: