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

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

Moduleghc-10.0.0.20260917GHC2024

GHC.ByteCode.Serialize

This module implements the serialization of bytecode objects to and from disk.

  • 6 types
  • 8 values

Convert an OnDiskModuleByteCode to an ModuleByteCode. OnDiskModuleByteCode is the representation which we read from a file, the ModuleByteCode is the representation which is manipulated by program logic.

This notably writes the object files to temporary files. They are written to temporary files so that the normal object file loading code paths (which expect object files to exist as on-disk files) can be used in the loader.