Synthesizing `RuntimeRep`-indexed type class instances in a GHC plugin to simulate monomorphization
Haskell Community [Unofficial]
March 12, 2026
we could generate the code only at call sides.
type classes like
PrimMonador evenMonadin general
This sounds like staging to me!
Discussion in the ATmosphere