GHC.Linker.Unit

ghc-9.2.4: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Linker.Unit

Description

Linking Haskell units

Synopsis

- collectLinkOpts :: DynFlags -> [UnitInfo] -> ([String], [String], [String])
- collectArchives :: DynFlags -> UnitInfo -> IO [FilePath]
- getUnitLinkOpts :: DynFlags -> UnitEnv -> [UnitId] -> IO ([String], [String], [String])
- getLibs :: DynFlags -> UnitEnv -> [UnitId] -> IO [(String, String)]

# Documentation

collectLinkOpts :: DynFlags -> [UnitInfo] -> ([String], [String], [String]) Source #

collectArchives :: DynFlags -> UnitInfo -> IO [FilePath] Source #

getUnitLinkOpts :: DynFlags -> UnitEnv -> [UnitId] -> IO ([String], [String], [String]) Source #

Find all the link options in these and the preload packages, returning (package hs lib options, extra library options, other flags)

getLibs :: DynFlags -> UnitEnv -> [UnitId] -> IO [(String, String)] Source #