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

Avoid deadlocks in multi-component support #416

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

wz1000
Copy link
Contributor

@wz1000 wz1000 commented Nov 8, 2023

The logging library doesn't seem to like it when multiple logging actions are
interleaved with each other, as can happen if we use unsafeInterleaveIO.
This leads to a deadlock.

To work around this, introduce a CachedIO type so that we can explicitly
control ordering of effects and avoid such situations where logging is
interleaved.

…ions are

interleaved with each other, as can happen if we use `unsafeInterleaveIO`.
This leads to a deadlock.

To work around this, introduce a `CachedIO` type so that we can explicitly
control ordering of effects and avoid such situations where logging is
interleaved.
@fendor fendor merged commit c547368 into haskell:master Nov 8, 2023
19 checks passed
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