ghc-lib-parser-9.8.1.20231009: The GHC API, decoupled from GHC versions
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Runtime.Interpreter.Types

Description

Types used by the runtime interpreter

Synopsis

Documentation

data Interp #

Interpreter

Constructors

Interp 

Fields

data InterpInstance #

Constructors

ExternalInterp !ExtInterp

External interpreter

data InterpProcess #

Constructors

InterpProcess 

Fields

data ExtInterp #

Constructors

ExtIServ !IServ 
ExtJS !JSInterp 

data ExtInterpInstance c #

Common field between native external interpreter and the JS one

Constructors

ExtInterpInstance 

Fields

data ExtInterpState cfg details #

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

ExtInterpState 

Fields

data InterpStatus inst #

Status of an external interpreter

Constructors

InterpPending

Not spawned yet

InterpRunning !inst

Running

IServ

data IServConfig #

Configuration needed to spawn an external interpreter

Constructors

IServConfig 

Fields

JSInterp

data JSInterpExtra #

Constructors

JSInterpExtra 

Fields

data JSState #

Constructors

JSState 

Fields

data NodeJsSettings #

NodeJs configuration

Constructors

NodeJsSettings 

Fields