ghc-8.10.2: The GHC API
Safe HaskellNone
LanguageHaskell2010

BinIface

Description

Binary interface file support.

Synopsis

Public API for interface file serialisation

writeBinIface :: DynFlags -> FilePath -> ModIface -> IO () Source #

Write an interface file

data CheckHiWay Source #

Constructors

CheckHiWay 
IgnoreHiWay 

Instances

Instances details
Eq CheckHiWay # 
Instance details

Defined in BinIface

getWithUserData :: Binary a => NameCacheUpdater -> BinHandle -> IO a Source #

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.

putWithUserData :: Binary a => (SDoc -> IO ()) -> BinHandle -> a -> IO () Source #

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