You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is said that unsafePerformIO is single-threaded, but unsafeDupablePerformIO can break bracket-like functions. Yet, bytestring uses it with unsafeWithForeignPtr.
In GitLab by @maerwald on Jul 17, 2022, 04:47
It is said that
unsafePerformIO
is single-threaded, butunsafeDupablePerformIO
can break bracket-like functions. Yet, bytestring uses it withunsafeWithForeignPtr
.Similar discussion here haskell/unix#157 (comment)
Use sites: https://gitlab.haskell.org/haskell/filepath/-/blob/c7d80e16e71bc1c85f4cd6158a96f2be6de64a1c/System/OsString/Common.hs#L113-124
The text was updated successfully, but these errors were encountered: