Using unsafePerformIO safely?

You could use finalizers on the opaque values to free the resources on the other side when they are no longer needed, I’d expect.

1 Like