-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support hie-bios #178
Comments
@hyperfekt apologies about the delay, I was pretty busy! You mean that snack should read Lines 148 to 150 in b6ca287
-outputdir ? Because those are only known at compile time (e.g. inside the derivation). We could potentially log them, and have snack-the-executable parse them.
|
I don't understand a lot about the Haskell build process, but I'm pretty sure the output directory isn't needed since the users of hie-bios are not responsible for compiling. I tried seeing what kind of flags stack gives to hie-bios but wasn't successful so far. |
Okay, I think I figured it out. hie-bios needs the following in the file located at
The stuff we need is already used by the library. |
I'm close to being done implementing this, but since I'm not super familiar with how Haskell builds work I am wondering whether there can exist conflicting in-project dependencies (as opposed to external package ones) in one project, or if we can make ghcide et al use a shared session including all dependencies of the top-level package specification for all files. EDIT: I just realized the ghci mode would have the same problem so I'm just going to ignore that possibility for now. |
For easy use with hie and ghcide, it would be great if snack added support for hie-bios. My understanding is that for this it needs to be able to output the options given to GHC into a file given by
$HIE_BIOS_OUTPUT
.The text was updated successfully, but these errors were encountered: