Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data LinkDepsOpts = LinkDepsOpts {
- ldObjSuffix :: !String
- ldOneShotMode :: !Bool
- ldModuleGraph :: !ModuleGraph
- ldUnitEnv :: !UnitEnv
- ldPprOpts :: !SDocContext
- ldUseByteCode :: !Bool
- ldMsgOpts :: !(DiagnosticOpts IfaceMessage)
- ldWays :: !Ways
- ldFinderCache :: !FinderCache
- ldFinderOpts :: !FinderOpts
- ldLoadIface :: !(SDoc -> Module -> IO (MaybeErr MissingInterfaceError ModIface))
- ldLoadByteCode :: !(Module -> IO (Maybe Linkable))
- data LinkDeps = LinkDeps {
- ldNeededLinkables :: [Linkable]
- ldAllLinkables :: [Linkable]
- ldUnits :: [UnitId]
- ldNeededUnits :: UniqDSet UnitId
- getLinkDeps :: LinkDepsOpts -> Interp -> LoaderState -> SrcSpan -> [Module] -> IO LinkDeps
Documentation
data LinkDepsOpts Source #
LinkDepsOpts | |
|
LinkDeps | |
|
getLinkDeps :: LinkDepsOpts -> Interp -> LoaderState -> SrcSpan -> [Module] -> IO LinkDeps Source #
Find all the packages and linkables that a set of modules depends on
Return the module and package dependencies for the needed modules. See Note [Object File Dependencies]
Fails with an IO exception if it can't find enough files