Skip to content
  • Sylvain Henry's avatar
    Add allowVirtualUnits field in PackageState · f6be6e43
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    Instead of always querying DynFlags to know whether we are allowed to
    use virtual units (i.e. instantiated on-the-fly, cf Note [About units]
    in GHC.Unit), we store it once for all in
    `PackageState.allowVirtualUnits`.
    
    This avoids using DynFlags too much (cf #17957) and is preliminary work
    for #14335.
    f6be6e43