HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

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.

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 :: 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
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

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

newtypenewtype HValue
#

Constructors

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