base-4.19.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.InfoProv

Contents

Description

Access to GHC's info-table provenance metadata.

Since: base-4.18.0.0

Synopsis

Documentation

data InfoProv Source #

Instances

Instances details
Show InfoProv Source # 
Instance details

Defined in GHC.InfoProv

Eq InfoProv Source # 
Instance details

Defined in GHC.InfoProv

whereFrom :: a -> IO (Maybe InfoProv) Source #

Get information about where a value originated from. This information is stored statically in a binary when `-finfo-table-map` 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.

Since: base-4.16.0.0

Internals