diff options
author | romes <rodrigo.m.mesquita@gmail.com> | 2023-02-21 18:58:10 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-02-21 23:58:42 -0500 |
commit | f11d9c274d728696bc173c62a2ead62b8288836f (patch) | |
tree | 3d8c043417f95bc5e6436e9e0d61f48886742bb6 /compiler/GHC | |
parent | 9296660b131d42f1b1f9c421040c5746d5c56989 (diff) | |
download | haskell-f11d9c274d728696bc173c62a2ead62b8288836f.tar.gz |
fix: Update documentation links
Closes #23008
Additionally batches some fixes to pointers to the Note [Wired-in units],
and a typo in said note.
Diffstat (limited to 'compiler/GHC')
-rw-r--r-- | compiler/GHC/Unit.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Unit/State.hs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/GHC/Unit.hs b/compiler/GHC/Unit.hs index 90223cd474..0006aac8af 100644 --- a/compiler/GHC/Unit.hs +++ b/compiler/GHC/Unit.hs @@ -63,7 +63,7 @@ Wired-in units Certain libraries (ghc-prim, base, etc.) are known to the compiler and to the RTS as they provide some basic primitives. Hence UnitIds of wired-in libraries -are fixed. Instead of letting Cabal chose the UnitId for these libraries, their +are fixed. Instead of letting Cabal choose the UnitId for these libraries, their .cabal file uses the following stanza to force it to a specific value: ghc-options: -this-unit-id ghc-prim -- taken from ghc-prim.cabal diff --git a/compiler/GHC/Unit/State.hs b/compiler/GHC/Unit/State.hs index 8123bbaab6..a72f53b366 100644 --- a/compiler/GHC/Unit/State.hs +++ b/compiler/GHC/Unit/State.hs @@ -1078,7 +1078,7 @@ pprTrustFlag flag = case flag of -- ----------------------------------------------------------------------------- -- Wired-in units -- --- See Note [Wired-in units] in GHC.Unit.Module +-- See Note [Wired-in units] in GHC.Unit.Types type WiringMap = Map UnitId UnitId @@ -1094,7 +1094,7 @@ findWiredInUnits findWiredInUnits logger prec_map pkgs vis_map = do -- Now we must find our wired-in units, and rename them to -- their canonical names (eg. base-1.0 ==> base), as described - -- in Note [Wired-in units] in GHC.Unit.Module + -- in Note [Wired-in units] in GHC.Unit.Types let matches :: UnitInfo -> UnitId -> Bool pc `matches` pid = unitPackageName pc == PackageName (unitIdFS pid) @@ -1177,7 +1177,7 @@ findWiredInUnits logger prec_map pkgs vis_map = do -- Helper functions for rewiring Module and Unit. These -- rewrite Units of modules in wired-in packages to the form known to the --- compiler, as described in Note [Wired-in units] in GHC.Unit.Module. +-- compiler, as described in Note [Wired-in units] in GHC.Unit.Types. -- -- For instance, base-4.9.0.0 will be rewritten to just base, to match -- what appears in GHC.Builtin.Names. |