ghc-lib-parser-0.20200301: 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 #

Runtime interpreter

Constructors

ExternalInterp !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 !IServConfig

Not spawned yet

IServRunning !IServInstance

Running