| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
GHC.ByteCode.Serialize
Contents
Description
This module implements the serialization of bytecode objects to and from disk.
Synopsis
- writeBinByteCode :: FilePath -> ModuleByteCode -> IO ()
- readBinByteCode :: HscEnv -> FilePath -> IO ModuleByteCode
- data ModuleByteCode = ModuleByteCode {}
Documentation
writeBinByteCode :: FilePath -> ModuleByteCode -> IO () Source #
Write a ModuleByteCode to a file.
readBinByteCode :: HscEnv -> FilePath -> IO ModuleByteCode Source #
Read a ModuleByteCode from a file.
data ModuleByteCode Source #
The in-memory representation of a bytecode object These are stored on-disk as .gbc files.
Constructors
| ModuleByteCode | |
Fields
| |
Instances
| Outputable ModuleByteCode Source # | |
Defined in GHC.Linker.Types Methods ppr :: ModuleByteCode -> SDoc Source # | |
Orphan instances
| Binary BCONPtr Source # | |
| Binary BCOPtr Source # | |
| Binary CompiledByteCode Source # | |
Methods put_ :: WriteBinHandle -> CompiledByteCode -> IO () Source # put :: WriteBinHandle -> CompiledByteCode -> IO (Bin CompiledByteCode) Source # get :: ReadBinHandle -> IO CompiledByteCode Source # | |
| Binary UnlinkedBCO Source # | |
Methods put_ :: WriteBinHandle -> UnlinkedBCO -> IO () Source # put :: WriteBinHandle -> UnlinkedBCO -> IO (Bin UnlinkedBCO) Source # get :: ReadBinHandle -> IO UnlinkedBCO Source # | |