-
Notifications
You must be signed in to change notification settings - Fork 140
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
Store a State# RealWorld
in the ByteString
#684
Comments
I briefly considered this as an alternative to the current
From my perspective, the most principled solution would be for But I don't know how to realistically get there from the current status quo. |
Could |
There is some argument for doing so. After all, the only difference between a But the main obstacles are impact assessment and migration, rather than finding the best possible home for the relevant types. |
This allows passing the state thread used to initialize the ByteString’s pointer to the functions that access that pointer. As a result,
deferForeignPtrAvailability
can be removed, and most or all uses ofaccursedUnutterablePerformIO
can be replaced with a safer function that takes aState# RealWorld
argument.The text was updated successfully, but these errors were encountered: