AlanRegardsI would expect the flag would default to retaining none, but could then either provide for returning all artifacts, or just for the targets explicitly listed in the `setTargets` call (i.e. not the full `depanal` result).So, would there be any objection to modifying the ModSummary to possibly retain those artifacts, configurable via a DynFlag?But the `load` step already does all those phases.At the moment the standard way to use the GHC API is something likeAnd likewise if renamed or typechecked ASTs are needed.
_ <- load LoadAllTargets
modSum <- getModSummary mn
p <- parseModule modSum