base-4.10.0.0: Basic libraries

Copyright(c) The University of Glasgow 2011
Licensesee libraries/base/LICENSE
Maintainercvs-ghc@haskell.org
Stabilityinternal
Portabilitynon-portable (GHC Extensions)
Safe HaskellTrustworthy
LanguageHaskell2010

GHC.Stack.CCS (signature[?])

Contents

Description

Access to GHC's call-stack simulation

Since: 4.5.0.0

Synopsis

Call stacks

currentCallStack :: IO [String] Source #

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.

Since: 4.5.0.0

whoCreated :: a -> IO [String] Source #

Get the stack trace attached to an object.

Since: 4.5.0.0

Internals

clearCCS :: IO a -> IO a Source #