RE: [External] Re: Loading a typechecked module and then using it immediately as a package

2021-06-28 Thread Erdi, Gergo via ghc-devs
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

RE: [External] Re: Loading a typechecked module and then using it immediately as a package

2021-06-28 Thread Erdi, Gergo via ghc-devs
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