Refactor GHC.StgToJS.Rts.Rts module
Fixes #22822 (closed)
This patch consolidates the base cases of mkClosureCon
into the general case for generating JavaScript h$cN
functions.
This patch also adds extra name caches in the form of lookup arrays for commonly used names in generated JavaScript RTS functions, such as xN
.
Edited by Josh Meredith