ghc-lib-8.8.3.20210620: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

BinIface

Description

Binary interface file support.

Synopsis

Documentation

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

Write an interface file

data CheckHiWay Source #

Constructors

CheckHiWay 
IgnoreHiWay 

Instances

Instances details
Eq CheckHiWay Source # 
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.