Multiple GHC sessions
Alan & Kim Zimmerman
alan.zimm at gmail.com
Sun Jan 17 14:49:43 UTC 2016
At the moment there are issues with having multiple GHC API sessions
in a single executable, which boil down to GHC having global
A quick grep over the GHC sources shows the following instances
Of these the v_unsafeGlobalDynFlags can probably be ignored, as they
are intended to be used in very specific, limited circumstances only.
So, would it be possible to create a structure housing the remaining
ones, and somehow make it possible to access these in some kind of
session? Or preferably get rid of them, or move them into existing
structures such as DynFlags.
This is an exploratory email, more to get a handle on what has been
done/considered already in this space.
The issue does have a major impact on tooling developers though.
More information about the ghc-devs