HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleghci-10.0.0.20260917Haskell2010

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.

Contents
  1. Remote pointer
  2. RemoteRef: reference to some heap object (potentially remote)
  3. ForeignRef: RemoteRef with a finalizer
  4. HValue
Synopsis

Remote pointer

RemoteRef: reference to some heap object (potentially remote)

newtypenewtype RemoteRef a

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 ghci-10.0.0.20260917 · GHCi.RemoteTypes
  • Binary (RemoteRef a)Defined in ghci-10.0.0.20260917 · GHCi.RemoteTypes
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

HValue