Add thNameToGhcNameIO
See issue at: #21730
thNameToGhcName
currently runs in the CoreM
monad, but it actually doesn't need to be; the only thing it needs from CoreM
is HscEnv
, and the only thing it needs from HscEnv
is NameCache
. So this simplifies the system (Conceivably, we could deprecate thNameToGhcName
and force people to use the IO version; I did not do that for right now), plus it allows for running thNameToGhcName
in parts of the plugin that don't run in CoreM
, e.g. parsedResultAction
.