ghc-9.6.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Iface.Recomp.Flags

Description

This module manages storing the various GHC option flags in a modules interface file as part of the recompilation checking infrastructure.

Synopsis

- fingerprintDynFlags :: HscEnv -> Module -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
- fingerprintOptFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
- fingerprintHpcFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint

# Documentation

fingerprintDynFlags :: HscEnv -> Module -> (BinHandle -> Name -> IO ()) -> IO Fingerprint Source #

Produce a fingerprint of a `DynFlags` value. We only base the finger print on important fields in `DynFlags` so that the recompilation checker can use this fingerprint.

NB: The `GenModule` parameter is the `GenModule` recorded by the *interface* file, not the actual `GenModule` according to our `DynFlags`.

fingerprintOptFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint Source #

fingerprintHpcFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint Source #