HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHCi.RemoteTypes

Types for referring to remote objects in Remote GHCi. For more details, see Note [External GHCi pointers] in compilerGHCRuntime/Interpreter.hs

For details on Remote GHCi, see Note [Remote GHCi] in compilerGHCRuntime/Interpreter.hs.

  • 6 types
  • 12 values

Remote pointer

4 declarations

RemoteRef: reference to some heap object (potentially remote)

5 declarations
newtypenewtype RemoteRef (a :: k)
#

A reference to a heap object. Potentially in a remote heap! These are allocated and freed explicitly.

Constructors

Instances2Show, Binary
  • Show (RemoteRef a)Defined in ghc-lib-parser-9.14.1.20251220 · GHCi.RemoteTypes
  • Binary (RemoteRef a)Defined in ghc-lib-parser-9.14.1.20251220 · GHCi.RemoteTypes
valuemkRemoteRef :: a -> IO (RemoteRef a)
#

Make a reference to a local value that we can send remotely. This reference will keep the value that it refers to alive until freeRemoteRef is called.

valuelocalRef :: RemoteRef a -> IO a
#

Convert a RemoteRef to its carried type. Should only be used if the RemoteRef originated in this process.

ForeignRef: RemoteRef with a finalizer

6 declarations
newtypenewtype ForeignRef (a :: k)
#

An RemoteRef with a finalizer

Instances1NFData
  • NFData (ForeignRef a)Defined in ghc-lib-parser-9.14.1.20251220 · GHCi.RemoteTypes

HValue

3 declarations
newtypenewtype HValue
#

Constructors

Instances1Show
  • Show HValueDefined in ghc-lib-parser-9.14.1.20251220 · GHCi.RemoteTypes