GHC.Linker.Types
Documentation
Constructors
Loader | |
Fields
|
data LoaderState Source #
Constructors
LoaderState | |
Fields
|
modifyClosureEnv :: LoaderState -> (ClosureEnv -> ClosureEnv) -> LoaderState Source #
Constructors
LinkerEnv | |
Fields
|
type ClosureEnv = NameEnv (Name, ForeignHValue) Source #
extendClosureEnv :: ClosureEnv -> [(Name, ForeignHValue)] -> ClosureEnv Source #
Information we can use to dynamically link modules into the compiler
Constructors
LM | |
Fields
|
Instances
type LinkableSet = ModuleEnv Linkable Source #
mkLinkableSet :: [Linkable] -> LinkableSet Source #
unionLinkableSet :: LinkableSet -> LinkableSet -> LinkableSet Source #
Objects which have yet to be linked by the compiler
Constructors
DotO ObjFile | An object file (.o) |
DotA FilePath | Static archive file (.a) |
DotDLL FilePath | Dynamically linked library file (.so, .dll, .dylib) |
BCOs CompiledByteCode [SptEntry] | A byte-code object, lives only in memory. Also carries some static pointer table entries which should be loaded along with the BCOs. See Note [Grand plan for static forms] in GHC.Iface.Tidy.StaticPtrTable. |
Instances
An entry to be inserted into a module's static pointer table. See Note [Grand plan for static forms] in GHC.Iface.Tidy.StaticPtrTable.
Constructors
SptEntry Id Fingerprint |
Instances
isObjectLinkable :: Linkable -> Bool Source #
linkableObjs :: Linkable -> [FilePath] Source #
nameOfObject :: Unlinked -> FilePath Source #
Retrieve the filename of the linkable if possible. Panic if it is a byte-code object
isInterpretable :: Unlinked -> Bool Source #
Is this a bytecode linkable with no file on disk?
byteCodeOfObject :: Unlinked -> CompiledByteCode Source #
Retrieve the compiled byte-code if possible. Panic if it is a file-based linkable
data LibrarySpec Source #
Instances
Outputable LibrarySpec Source # | |
Defined in GHC.Linker.Types Methods ppr :: LibrarySpec -> SDoc Source # |
data LoadedPkgInfo Source #
Constructors
LoadedPkgInfo | |
Fields |
Instances
Outputable LoadedPkgInfo Source # | |
Defined in GHC.Linker.Types Methods ppr :: LoadedPkgInfo -> SDoc Source # |
type PkgsLoaded = UniqDFM UnitId LoadedPkgInfo Source #