ghc-9.4.3: The GHC API
Safe HaskellSafe-Inferred
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

InternalInterp

Internal 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