Skip to content

Expose unit ID in info table provenance information #214

@bgamari

Description

@bgamari

Currently GHC.InfoProv.InfoProv exposes module names but not the unit ID where the module lives. I propose that we fill this gap by adding the following field to InfoProv:

ipUnitId :: InfoProv -> String

Providing this information without significantly increasing the binary size overhead of IPE information requires some refactoring of the whereFrom# primop, which is currently exposed by GHC.Exts. As this primop is not intended for use by end-users, I propose that we remove it from GHC.Exts as nearly all users can instead rely on the safer and more stable GHC.InfoProv.whereFrom.

Implementation: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11341

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedApproved by CLC votebase-4.20Implemented in base-4.20 (GHC 9.10)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions