Skip to content

Format of GHC.Stack.CCS.InfoProv.ipDesc

When using GHC.Stack.CCS.whereFrom to get info table information for a heap object, you get something that looks like the following:

InfoProv {ipName = "BitmapIndexed_Types.RR_3_con_info", ipDesc = "5", ipTyDesc = "HashMap", ipLabel = "unsafeInsert.go", ipMod = "Types.RR", ipLoc = "Data/HashMap/Internal.hs:902:13-18"}

Most of these fields are human readable except for the ipDesc field. This corresponds to the ClosureType of the heap object. It would be good if this function gave us a pretty printed version of the closure type, eg, CONSTR_1_1, rather than the enum index. Or it would be good to document this.

I'd be happy to make an MR in either case.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information