INTERNAL
Oh, and one more question. This all works if in `Test.hs` I use a package
import for `MyLib`. However, if I remove that, I get an error
attempting to use module ‘main:MyLib’ (input/MyLib.hs) which is not
loaded
So I tried adding an ExposePackage to the DynFlags's
INTERNAL
Thanks, I got this working (after changing it slightly to use the GHC 9.0 API
to the UnitState). However, I have some followup questions:
1. In the fakeUnitInfo, what is the relationship between unitLibraries and
unitExposedModules?
2. In the fakeUnitInfo, what is the unitImportDirs