ghc-lib-parser-9.2.1.20220109: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Runtime.Interpreter.Types

Description

Types used by the runtime interpreter

Synopsis

Documentation

data Interp Source #

Interpreter

Constructors

Interp 

Fields

data InterpInstance Source #

Constructors

ExternalInterp !IServConfig !IServ

External interpreter

newtype IServ Source #

External interpreter

The external interpreter is spawned lazily (on first use) to avoid slowing down sessions that don't require it. The contents of the MVar reflects the state of the interpreter (running or not).

Constructors

IServ (MVar IServState) 

data IServInstance Source #

External interpreter instance

Constructors

IServInstance 

Fields

data IServConfig Source #

Configuration needed to spawn an external interpreter

Constructors

IServConfig 

Fields

data IServState Source #

State of an external interpreter

Constructors

IServPending

Not spawned yet

IServRunning !IServInstance

Running