Introduce `-fimport-loaded-targets` GHCi flag

This new flag automatically adds all loaded targets to the GHCi session by adding an InteractiveImport for the loaded targets.

By default, this flag is disabled, as it potentially increases memory-usage.

Fixes #26866 (closed) by rendering the use of a -ghci-script to achieve the same thing redundant.

Merge request reports

Loading