haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

`writeHieFiles = true` breaks on `mtl-compat`

Open dhess opened this issue 4 years ago • 7 comments

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?

dhess avatar Sep 20 '21 22:09 dhess

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.

michaelpj avatar Sep 21 '21 10:09 michaelpj

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.

michaelpj avatar Sep 21 '21 10:09 michaelpj

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.

dhess avatar Sep 21 '21 12:09 dhess

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?

dhess avatar Sep 21 '21 12:09 dhess

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.

michaelpj avatar Sep 21 '21 12:09 michaelpj

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.

stale[bot] avatar Sep 28 '22 16:09 stale[bot]

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.

stale[bot] avatar Mar 28 '23 17:03 stale[bot]