interact package:ghc

Built-in "bad" SrcLoc values for particular locations
Built-in "bad" SrcSpans for common sources of location uncertainty
The Name was defined interactively.
Interactive context, recording information about the state of the context in which statements are executed in a GHCi session.
Get the DynFlags used to evaluate interactive expressions.
Set the DynFlags used to evaluate interactive expressions. Also initialise (load) plugins. Note: this cannot be used for changes to packages. Use setSessionDynFlags, or setProgramDynFlags and then copy the unitState into the interactive DynFlags.