Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types used by the runtime interpreter
Synopsis
- data Interp
- newtype IServ = IServ (MVar IServState)
- data IServInstance = IServInstance {
- iservPipe :: !Pipe
- iservProcess :: !ProcessHandle
- iservLookupSymbolCache :: !(UniqFM FastString (Ptr ()))
- iservPendingFrees :: ![HValueRef]
- data IServConfig = IServConfig {
- iservConfProgram :: !String
- iservConfOpts :: ![String]
- iservConfProfiled :: !Bool
- iservConfDynamic :: !Bool
- iservConfHook :: !(Maybe (CreateProcess -> IO ProcessHandle))
- iservConfTrace :: IO ()
- data IServState
Documentation
Runtime interpreter
ExternalInterp !IServConfig !IServ | External interpreter |
InternalInterp | Internal interpreter |
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).
data IServInstance Source #
External interpreter instance
IServInstance | |
|
data IServConfig Source #
Configuration needed to spawn an external interpreter
IServConfig | |
|
data IServState Source #
State of an external interpreter
IServPending | Not spawned yet |
IServRunning !IServInstance | Running |