HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleghc-internal-10.0.0Haskell2010

GHC.Internal.ExecutionStack

This is a module for efficient stack traces. This stack trace implementation is considered low overhead. Basic usage looks like this:

import GHC.Internal.ExecutionStack

myFunction :: IO ()
myFunction = do
     putStrLn =<< showStackTrace

Your GHC must have been built with libdw support for this to work.

user@host:~$ ghc --info | grep libdw
 ,("RTS expects libdw",YES)
Synopsis
  • Packageghc-internal-10.0.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceExecutionStack.hs

Get a trace of the current execution stack state.

Returns Nothing if stack trace support isn't available on host machine.