Generating fresh names in a source plugin
Wolfgang Jeltsch
wolfgang at well-typed.com
Mon Aug 4 22:11:39 UTC 2025
Am Montag, dem 04.08.2025 um 15:16 +0100 schrieb Simon Peyton Jones:
> I have created https://gitlab.haskell.org/ghc/ghc/-/issues/26264 to
> document my learning journey.
Thank you for this.
I find the reference to `takeUniqFromNameCache` interesting. I
understand that the name cache that a `Hsc` environment contains, stores
a tag that is to be used for generating uniques of names that will be
put into this cache. I guess that for generating my own names I may use
this very tag.
All the best,
Wolfgang
More information about the ghc-devs
mailing list