Write an interface file
Moduleghc-9.10.3GHC2021
GHC.Iface.Binary
Binary interface file support.
- 3 types
- 9 values
- Packageghc-9.10.3
- Exports12
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceBinary.hs
Public API for interface file serialisation
8 declarationsRead an interface file.
Read an interface file header, checking the magic number, version, and way. Returns the hash of the source file and a BinHandle which points at the start of the rest of the interface file data.
Instances1Eq
Eq CheckHiWayDefined in ghc-9.10.3 · GHC.Iface.Binary
Constructors
TraceBinIFace (SDoc -> IO ())QuietBinIFace
This performs a get action after reading the dictionary and symbol table. It is necessary to run this before trying to deserialise any Names or FastStrings.
Put a piece of data with an initialised UserData field. This is necessary if you want to serialise Names or FastStrings. It also writes a symbol table and the dictionary. This segment should be read using getWithUserData.
Internal serialisation functions
4 declarationsConstructors
BinSymbolTablebin_symtab_next :: !FastMutIntbin_symtab_map :: !IORef (UniqFM Name (Int, Name))