diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-05-07 19:01:37 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-06-13 02:13:02 -0400 |
commit | 8dc71f5577a541168951371bd55b51a588b57813 (patch) | |
tree | 8f821274d3b5a7a9a8595c3c4091a18d2257a5eb /ghc | |
parent | 72d086106d49bc18277f3a066e671e87e9b37a1b (diff) | |
download | haskell-8dc71f5577a541168951371bd55b51a588b57813.tar.gz |
Rename unsafeGetUnitInfo into unsafeLookupUnit
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/GHCi/UI.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index 714b1d3fa4..17f8706308 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -57,7 +57,7 @@ import GHC.Driver.Types ( tyThingParent_maybe, handleFlagWarnings, getSafeMode, hsc_dynLinker, hsc_interp ) import GHC.Unit.Module import GHC.Types.Name -import GHC.Unit.State ( unitIsTrusted, unsafeGetUnitInfo, getInstalledPackageDetails, +import GHC.Unit.State ( unitIsTrusted, unsafeLookupUnit, getInstalledPackageDetails, listVisibleModuleNames, pprFlag ) import GHC.Iface.Syntax ( showToHeader ) import GHC.Core.Ppr.TyThing @@ -2360,7 +2360,7 @@ isSafeModule m = do packageTrusted dflags md | isHomeModule dflags md = True - | otherwise = unitIsTrusted $ unsafeGetUnitInfo dflags (moduleUnit md) + | otherwise = unitIsTrusted $ unsafeLookupUnit dflags (moduleUnit md) tallyPkgs dflags deps | not (packageTrustOn dflags) = (S.empty, S.empty) | otherwise = S.partition part deps |