HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulewherefrom-compat-0.2.0.0Haskell2010

GHC.InfoProv.Compat

This module provides a stable interface to access GHC's info provenance information. This is helpful for seeing metadata about heap objects.

  • 1 type
  • 1 value
valuewhereFrom :: a -> IO (Maybe InfoProv)
#

Get information about where a value originated from.

This information is stored statically in a binary when super-duper is enabled. The source positions will be greatly improved by also enabled debug information with -g3. Finally you can enable -fdistinct-constructor-tables to get more precise information about data constructor allocations.

The information is collect by looking at the info table address of a specific closure and then consulting a specially generated map (by -finfo-table-map) to find out where we think the best source position to describe that info table arose from.