haskell.nix
haskell.nix copied to clipboard
`writeHieFiles = true` breaks on `mtl-compat`
We've been using writeHieFiles = true since it was introduced, but now that we're pulling in Protolude, which pulls in mtl-compat-0.2.2, it's breaking on mtl-compat. See https://gist.github.com/dhess/861e91625bff4d6401494c40cffe6a96
Any idea why it might be breaking on that package? Any way to disable wriiteHieFiles just for that package?
It's a per-component option, no? So you should just be able to turn it off on the component where it doesn't work.
My guess as to why it breaks is that mtl-compat defines no Haskell entities of its own. Perhaps in that case you don't get a HIE file for the module (might have to ask the GHC maintainers). But it looks like something is trying to find a HIE file unconditionally, not sure what.
It's a per-component option, no? So you should just be able to turn it off on the component where it doesn't work.
Hah, you're right! This did the trick:
packages.mtl-compat.writeHieFiles = false;
Once again, I'd just like to express what a joy it is to use this project.
But it looks like something is trying to find a HIE file unconditionally, not sure what.
Shall I keep this issue open as a way to track that? Or do you prefer that I close it now that the immediate problem is resolved?
Shall I keep this issue open as a way to track that?
Yeah, it's still a bug, although I guess not super-high priority.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.