| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
GHC.Unit.External.Query
Contents
Synopsis
- lookupUnit' :: Bool -> UnitInfoMap -> Unit -> Maybe UnitInfo
- lookupUnitId' :: UnitInfoMap -> UnitId -> Maybe UnitInfo
Query the UnitInfoMap
lookupUnit' :: Bool -> UnitInfoMap -> Unit -> Maybe UnitInfo Source #
A more specialized interface, which doesn't require a UnitState (so it
can be used while we're initializing DynFlags)
Parameters:
* a boolean specifying whether or not to look for on-the-fly renamed interfaces
* a UnitInfoMap
lookupUnitId' :: UnitInfoMap -> UnitId -> Maybe UnitInfo Source #
Find the unit we know about with the given unit id, if any