GHC.Prim.PtrEq
Comparing underlying pointers for equality.
Use GHC.Exts from the base package instead of importing this module directly.
Documentation
reallyUnsafePtrEquality :: a -> a -> Int# Source #
Compare the underlying pointers of two values for equality.
Returns 1
if the pointers are equal and 0
otherwise.
The two values must be of the same type, of kind Type
.
See also reallyUnsafePtrEquality#
, which doesn't have
such restrictions.
sameMutableArray# :: MutableArray# s a -> MutableArray# s a -> Int# Source #
Compare the underlying pointers of two mutable arrays.
sameSmallArray# :: SmallArray# a -> SmallArray# a -> Int# Source #
Compare the underlying pointers of two small arrays.
sameSmallMutableArray# :: SmallMutableArray# s a -> SmallMutableArray# s a -> Int# Source #
Compare the underlying pointers of two small mutable arrays.
sameByteArray# :: ByteArray# -> ByteArray# -> Int# Source #
Compare the pointers of two byte arrays.
sameMutableByteArray# :: MutableByteArray# s -> MutableByteArray# s -> Int# Source #
Compare the underlying pointers of two mutable byte arrays.
sameMutVar# :: MutVar# s a -> MutVar# s a -> Int# Source #
Compare the underlying pointers of two MutVar#
s.
sameIOPort# :: IOPort# s a -> IOPort# s a -> Int# Source #
Compare the underlying pointers of two IOPort#
s.
eqStableName# :: StableName# a -> StableName# b -> Int# Source #
Compare two stable names for equality.