Rebecca Turner
Rebecca Turner
I think this might be unavoidable because interpreting the module is needed to access its top-level binds for the eval feature: https://github.com/MercuryTechnologies/ghciwatch/blob/main/src/ghci/stdin.rs#L138-L168 Try some of these commands locally and let...
`ghcid` doesn't let you access unexported top-level bindings in eval comments, so it doesn't have to reinterpret the modules under inspection. Maybe I could have a toggle for this?
Thanks for the ticket! The short answer is that the default value is `src`. It's pretty unsophisticated. I thought I had a note explaining this somewhere but apparently I do...
This shouldn't crash, I'd like to support multiple components.
@eddiemundo Would you paste some example output? It'll help when I have time to look into this.
@georgefst Unless we can find a way to query GHCi for all the search paths, I'm not sure this is fixable. This might need a patch to GHC or Cabal...
@georgefst Ahh, good point, I wasn't thinking carefully. I suspect that the reason it works with `ghcid` is that `ghcid` takes the naïve approach of waiting for files to change...
I would accept a PR for this, but it's probably not going to be a high priority.
Good idea, I can see about adding checksums. Filed #357
Does [the `--error-file` option](https://mercurytechnologies.github.io/ghciwatch/cli.html#--error-file) fill this need?