Up to you whether to merge it now or warehouse until GHC 9.4 RC.
I'm not particularly proud of reviving Control.DeepSeq.BackDoor, but it feels wrong to mark Data.ByteArray itself as Safe or even Trustworthy, because it uses unsafeCoerce# and manipulates state tokens manually. How do you feel about it?
ByteArray
has just landed into GHC HEAD: https://gitlab.haskell.org/ghc/ghc/-/commit/1f8090933268b1ca071bc4a8a35b0f1828a76fceUp to you whether to merge it now or warehouse until GHC 9.4 RC.
I'm not particularly proud of reviving
Control.DeepSeq.BackDoor
, but it feels wrong to markData.ByteArray
itself asSafe
or evenTrustworthy
, because it usesunsafeCoerce#
and manipulates state tokens manually. How do you feel about it?