Skip to content
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

should be able to control restart behaviour when --before-startup-shell command returns nonzero #320

Closed
mwotton opened this issue Aug 30, 2024 · 1 comment
Labels
linear Created by Linear-GitHub Sync

Comments

@mwotton
Copy link
Contributor

mwotton commented Aug 30, 2024

Describe the feature you’d like to be implemented

I'm using the --before-startup-shell hpack technique, but if i fumble the package.yaml edit, the whole ghciwatch process dies. ideally it'd just wait for another edit to trigger a reload.

List alternatives to the feature and their pros and cons

I could do something like hpack; true as the argument, but then it'd load the ghci session using the old cabal file and I wouldn't necessarily notice the problem.

Additional context

It's annoying to have to keep restarting the process when I fumble an edit.

@github-actions github-actions bot added the linear Created by Linear-GitHub Sync label Aug 30, 2024
@mwotton
Copy link
Contributor Author

mwotton commented Aug 30, 2024

no, i've misunderstood the problem I think. hpack successfully runs and creates a bad cabal file, so it's dying later.

@mwotton mwotton closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant