Skip to content

GHC.Prim.PtrEq exports reallyUnsafePtrEquality

GHC.Prim.PtrEq is a Trustworthy module exporting reallyUnsafePtrEquality (which is a version of reallyUnsafePtrEquality# specialized to Type).

I don't think reallyUnsafePtrEquality should be available in safe code. It violates referential transparency.

Edited by Krzysztof Gogolewski
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information