Skip to content

Use typed-process #287

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

9999years
Copy link

@9999years 9999years commented Aug 15, 2024

This vastly improves error messages by using typed-process instead of process.

This is largely another take on #253, except it improves the error messages for many more errors.

@9999years 9999years force-pushed the typed-process-error-message branch 3 times, most recently from 19d9161 to 0c524a0 Compare August 16, 2024 00:05
@9999years 9999years marked this pull request as ready for review August 16, 2024 21:02

Verified

This commit was signed with the committer’s verified signature.
jpbede Jan-Philipp Benecke
@9999years 9999years force-pushed the typed-process-error-message branch from 0c524a0 to 31afb68 Compare December 11, 2024 19:12
@sevanspowell
Copy link

This also fixes a failure I've encountered when the thread running tmp-postgres is killed.

I use something like this https://github.com/eldr-io/hastl/blob/main/src/DevelMain.hs to run a development environment. When the thread running tmp-postgres is killed, ghcid crashes. I narrowed this down to executeCopyCommand and it's use of the system command. Replacing it with typed-process and runProcess fixed the issue for me (see master...sambnt:tmp-postgres:master).

I haven't fully figured out why yet, but I +1 this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants