HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghci-9.10.3Haskell2010

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
  • Packageghci-9.10.3
  • Exports18
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRemoteTypes.hs

Remote pointer

4 declarations

RemoteRef: reference to some heap object (potentially remote)

5 declarations
newtypenewtype RemoteRef a
#

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

Constructors

Instances2Show, Binary
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
#

An RemoteRef with a finalizer

Instances1NFData

HValue

3 declarations