Note [Wiring in RuntimeRep]
The RuntimeRep type (and friends) in GHC.Types has a bunch of constructors, making it a pain to wire in. To ease the pain somewhat, we use lists of the different bits, like Uniques, Names, DataCons. These lists must be kept in sync with each other. The rule is this: use the order as declared in GHC.Types. All places where such lists exist should contain a reference to this Note, so a search for this Note's name should find all the lists. See also Note [Getting from RuntimeRep to PrimRep] in GHC.Types.RepType.
References 1
- Getting from RuntimeRep to PrimRep GHC.Types.RepType
Referenced by 10
- GHC.Builtin.Types call site ×7
- GHC.Builtin.Names call site ×3