HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Linker.Static

  • 2 values
  • Packageghc-9.14.1
  • Exports2
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceStatic.hs
valuelinkStaticLib
  1. :: Logger
  2. -> DynFlags
  3. -> UnitEnv
  4. -> [String]
  5. -> [UnitId]
  6. -> IO ()
#

Linking a static lib will not really link anything. It will merely produce a static archive of all dependent static libraries. The resulting library will still need to be linked with any remaining link flags.