summaryrefslogtreecommitdiff
path: root/compiler/GHC/Unit/State.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-01-30 08:45:49 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-01 12:29:26 -0500
commit88fba8a4b3c22e953a634b81dd0b67ec66eb5e72 (patch)
tree75a46332ad32cfeaf4f4d52b3b60fd452f2493b6 /compiler/GHC/Unit/State.hs
parent06185102bb06d6d56e00d40172a6a473fc228501 (diff)
downloadhaskell-88fba8a4b3c22e953a634b81dd0b67ec66eb5e72.tar.gz
Fix a few Note inconsistencies
Diffstat (limited to 'compiler/GHC/Unit/State.hs')
-rw-r--r--compiler/GHC/Unit/State.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/GHC/Unit/State.hs b/compiler/GHC/Unit/State.hs
index 8644848310..3e74ae9936 100644
--- a/compiler/GHC/Unit/State.hs
+++ b/compiler/GHC/Unit/State.hs
@@ -318,8 +318,8 @@ data UnitConfig = UnitConfig
, unitConfigWays :: !Ways -- ^ Ways to use
, unitConfigAllowVirtual :: !Bool -- ^ Allow virtual units
- -- ^ Do we allow the use of virtual units instantiated on-the-fly (see Note
- -- [About units] in GHC.Unit). This should only be true when we are
+ -- ^ Do we allow the use of virtual units instantiated on-the-fly (see
+ -- Note [About units] in GHC.Unit). This should only be true when we are
-- type-checking an indefinite unit (not producing any code).
, unitConfigProgramName :: !String
@@ -1148,7 +1148,7 @@ findWiredInUnits logger prec_map pkgs vis_map = do
-- every non instantiated unit is an instance of
-- itself (required by Backpack...)
--
- -- See Note [About Units] in GHC.Unit
+ -- See Note [About units] in GHC.Unit
}
| otherwise
= pkg
@@ -2180,7 +2180,7 @@ renameHoleModule :: UnitState -> ShHoleSubst -> Module -> Module
renameHoleModule state = renameHoleModule' (unitInfoMap state) (preloadClosure state)
-- | Substitutes holes in a 'Unit', suitable for renaming when
--- an include occurs; see Note [Representation of module/name variable].
+-- an include occurs; see Note [Representation of module/name variables].
--
-- @p[A=\<A>]@ maps to @p[A=\<B>]@ with @A=\<B>@.
renameHoleUnit :: UnitState -> ShHoleSubst -> Unit -> Unit