ghc-prim-0.9.1: GHC primitives
Licensesee libraries/ghc-prim/LICENSE
Maintainercvs-ghc@haskell.org
Stabilityinternal
Portabilitynon-portable (GHC Extensions)
Safe HaskellUnsafe
LanguageHaskell2010

GHC.Prim.PtrEq

Description

Comparing underlying pointers for equality.

Use GHC.Exts from the base package instead of importing this module directly.

Synopsis

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.

sameArray# :: Array# a -> Array# a -> Int# Source #

Compare the underlying pointers of two arrays.

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.

sameTVar# :: TVar# s a -> TVar# s a -> Int# Source #

Compare the underlying pointers of two TVar#s.

sameMVar# :: MVar# s a -> MVar# s a -> Int# Source #

Compare the underlying pointers of two MVar#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.