Skip to content

Patches for reallyUnsafePtrEquality# change

sheaf requested to merge sheaf/head.hackage:ptrEq into master

This MR deals with the fallout from ghc!6075 (closed). The necessary changes are of the following form:

  • replace the idiom unsafeCoerce# reallyUnsafePtrEquality# with reallyUnsafePtrEquality#, now that reallyUnsafePtrEquality# is more general and levity-polymorphic,
  • change imports of GHC.Prim to GHC.Exts, as some of the pointer comparison operations (such as sameMutVar#, sameMutableByteArray#, etc) are no longer primops. This means they are no longer exported by GHC.Prim, and are instead re-exported from GHC.Exts.
Edited by sheaf

Merge request reports