ghc-9.0.0.20200925: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.Runtime.Interpreter.Types

Description

Types used by the runtime interpreter

Synopsis

Documentation

data Interp Source #

Runtime interpreter

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