Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
hasCallStackBacktraceEnabled :: EnabledBacktraceMechanisms -> !Boolghc-internal GHC.Internal.Exception.Backtrace No documentation available.
getAllExceptionAnnotations :: ExceptionContext -> [SomeExceptionAnnotation]ghc-internal GHC.Internal.Exception.Context No documentation available.
data
SmallArray# (a :: TYPE 'BoxedRep l)ghc-internal GHC.Internal.Exts No documentation available.
data
SmallMutableArray# a (b :: TYPE 'BoxedRep l)ghc-internal GHC.Internal.Exts No documentation available.
compactAllocateBlock# :: Word# -> Addr# -> State# RealWorld -> (# State# RealWorld, Addr# #)ghc-internal GHC.Internal.Exts Attempt to allocate a compact block with the capacity (in bytes) given by the first argument. The Addr# is a pointer to previous compact block of the CNF or nullAddr# to create a new CNF with a single compact block. The resulting block is not known to the GC until compactFixupPointers# is called on it, and care must be taken so that the address does not escape or memory will be leaked.
currentCallStack :: IO [String]ghc-internal GHC.Internal.Exts Returns a [String] representing the current call stack. This can be useful for debugging. The implementation uses the call-stack simulation maintained by the profiler, so it only works if the program was compiled with -prof and contains suitable SCC annotations (e.g. by using -fprof-auto). Otherwise, the list returned is likely to be empty or uninformative.
reallyUnsafePtrEquality :: a -> a -> Int#ghc-internal GHC.Internal.Exts 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.
-
ghc-internal GHC.Internal.Exts Resize a mutable array to new specified size. The returned SmallMutableArray# is either the original SmallMutableArray# resized in-place or, if not possible, a newly allocated SmallMutableArray# with the original content copied over. To avoid undefined behaviour, the original SmallMutableArray# shall not be accessed anymore after a resizeSmallMutableArray# has been performed. Moreover, no reference to the old one should be kept in order to allow garbage collection of the original SmallMutableArray# in case a new SmallMutableArray# had to be allocated.
setThreadAllocationCounter# :: Int64# -> State# RealWorld -> State# RealWorldghc-internal GHC.Internal.Exts Sets the allocation counter for the current thread to the given value.
mallocForeignPtr :: Storable a => IO (ForeignPtr a)ghc-internal GHC.Internal.Foreign.ForeignPtr Allocate some memory and return a ForeignPtr to it. The memory will be released automatically when the ForeignPtr is discarded. mallocForeignPtr is equivalent to
do { p <- malloc; newForeignPtr finalizerFree p }although it may be implemented differently internally: you may not assume that the memory returned by mallocForeignPtr has been allocated with malloc. GHC notes: mallocForeignPtr has a heavily optimised implementation in GHC. It uses pinned memory in the garbage collected heap, so the ForeignPtr does not require a finalizer to free the memory. Use of mallocForeignPtr and associated functions is strongly recommended in preference to newForeignPtr with a finalizer.