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

GHC.Linker.Unit

Description

Linking Haskell units

Synopsis

Documentation

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

collectLibraryPaths :: Ways -> [UnitInfo] -> [FilePath] Source #

getUnitLinkOpts :: DynFlags -> [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)

getUnitLibraryPath :: SDocContext -> UnitState -> HomeUnit -> Ways -> [UnitId] -> IO [String] Source #

Find all the library paths in these and the preload packages

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

packageHsLibs :: DynFlags -> UnitInfo -> [String] Source #