GHC.Unit.Env

ghc-9.2.5: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Unit.Env

Synopsis

- data UnitEnv = UnitEnv {
  - ue_units :: !UnitState
  - ue_home_unit :: !HomeUnit
  - ue_platform :: !Platform
  - ue_namever :: !GhcNameVersion
  }
- preloadUnitsInfo :: UnitEnv -> MaybeErr UnitErr [UnitInfo]
- preloadUnitsInfo' :: UnitEnv -> [UnitId] -> MaybeErr UnitErr [UnitInfo]

# Documentation

data UnitEnv Source #

Constructors

UnitEnv |
Fields ue_units :: !UnitState Units ue_home_unit :: !HomeUnit Home unit ue_platform :: !Platform Platform ue_namever :: !GhcNameVersion GHC name/version (used for dynamic library suffix)

preloadUnitsInfo :: UnitEnv -> MaybeErr UnitErr [UnitInfo] Source #

Lookup `UnitInfo` for every preload unit from the UnitState and for every unit used to instantiate the home unit.

preloadUnitsInfo' :: UnitEnv -> [UnitId] -> MaybeErr UnitErr [UnitInfo] Source #

Lookup `UnitInfo` for every preload unit from the UnitState, for every unit used to instantiate the home unit, and for every unit explicitly passed in the given list of UnitId.