Set package:ghc
Set-like operations on lists
Avoid using them as much as possible
Set how many times a breakpoint should be ignored also used for
enable/disable
Set the interactive evaluation context.
(setContext imports) sets the ic_imports field (which in turn
determines what is in scope at the prompt) to imports, and
updates the icReaderEnv environment to reflect it.
We retain in scope all the things defined at the prompt, and kept in
ic_tythings. (Indeed, they shadow stuff from ic_imports.)
Set the monad GHCi lifts user statements into.
Checks that a type (in string form) is an instance of the
GHC.GHCi.GHCiSandboxIO type class. Sets it to be the GHCi
monad if it is, throws an error otherwise.
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.
Sets the program
DynFlags. Note: this invalidates the internal
cached module graph, causing more work to be done the next time
load is called.
Returns a boolean indicating if preload units have changed and need to
be reloaded.
Sets the targets for this session. Each target may be a module name or
a filename. The targets correspond to the set of root modules for the
program/library. Unloading the current program is achieved by setting
the current set of targets to be empty, followed by
load.