summaryrefslogtreecommitdiff
path: root/compiler/GHC/Runtime/Linker.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-05-12 11:49:21 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-13 02:13:02 -0400
commit9c5572cd29924dcc6effd8e102c9bb30d7b39bec (patch)
treeabbd7659d1da84b8a7f1d612a0b11c10f4213077 /compiler/GHC/Runtime/Linker.hs
parente7272d53e67e72580caceae40e766c4bfeb1c398 (diff)
downloadhaskell-9c5572cd29924dcc6effd8e102c9bb30d7b39bec.tar.gz
Remove LinkerUnitId type alias
Diffstat (limited to 'compiler/GHC/Runtime/Linker.hs')
-rw-r--r--compiler/GHC/Runtime/Linker.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/GHC/Runtime/Linker.hs b/compiler/GHC/Runtime/Linker.hs
index e45fce9bcc..7c8612ecb1 100644
--- a/compiler/GHC/Runtime/Linker.hs
+++ b/compiler/GHC/Runtime/Linker.hs
@@ -48,7 +48,7 @@ import GHC.Types.Name
import GHC.Types.Name.Env
import GHC.Unit.Module
import GHC.Data.List.SetOps
-import GHC.Runtime.Linker.Types (DynLinker(..), LinkerUnitId, PersistentLinkerState(..))
+import GHC.Runtime.Linker.Types (DynLinker(..), PersistentLinkerState(..))
import GHC.Driver.Session
import GHC.Types.Basic
import GHC.Utils.Outputable
@@ -1227,7 +1227,7 @@ showLS (Framework nm) = "(framework) " ++ nm
-- automatically, and it doesn't matter what order you specify the input
-- packages.
--
-linkPackages :: HscEnv -> [LinkerUnitId] -> IO ()
+linkPackages :: HscEnv -> [UnitId] -> IO ()
-- NOTE: in fact, since each module tracks all the packages it depends on,
-- we don't really need to use the package-config dependencies.
--
@@ -1244,7 +1244,7 @@ linkPackages hsc_env new_pkgs = do
modifyPLS_ dl $ \pls -> do
linkPackages' hsc_env new_pkgs pls
-linkPackages' :: HscEnv -> [LinkerUnitId] -> PersistentLinkerState
+linkPackages' :: HscEnv -> [UnitId] -> PersistentLinkerState
-> IO PersistentLinkerState
linkPackages' hsc_env new_pks pls = do
pkgs' <- link (pkgs_loaded pls) new_pks
@@ -1253,7 +1253,7 @@ linkPackages' hsc_env new_pks pls = do
dflags = hsc_dflags hsc_env
pkgstate = pkgState dflags
- link :: [LinkerUnitId] -> [LinkerUnitId] -> IO [LinkerUnitId]
+ link :: [UnitId] -> [UnitId] -> IO [UnitId]
link pkgs new_pkgs =
foldM link_one pkgs new_pkgs