ghc-internal-9.1400.0: Basic libraries
Copyright(c) The University of Glasgow 2013-2015
Licensesee libraries/base/LICENSE
Maintainerghc-devs@haskell.org
Stabilityinternal
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell2010

GHC.Internal.ExecutionStack.Internal

Contents

Description

Internals of the GHC.ExecutionStack module.

The API of this module is unstable and not meant to be consumed by the general public. If you absolutely must depend on it, make sure to use a tight upper bound, e.g., base < 4.X rather than base < 5, because the interface can change rapidly without much warning.

Since: base-4.9.0.0

Synopsis

Internal

data Location #

Location information about an address from a backtrace.

showLocation :: Location -> ShowS #

Render a Location as a string

data SrcLoc #

A location in the original program source.

Constructors

SrcLoc 

data StackTrace #

The state of the execution stack

stackFrames :: StackTrace -> Maybe [Location] #

List the frames of a stack trace.

stackDepth :: StackTrace -> Int #

How many stack frames in the given StackTrace

collectStackTrace :: IO (Maybe StackTrace) #

Get an execution stack.

showStackFrames :: [Location] -> ShowS #

Render a stacktrace as a string

invalidateDebugCache :: IO () #

Free the cached debug data.