summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-05-03 12:59:18 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-05-03 13:07:33 +0200
commit8abfa45f4c3ef3bf601fc15452a76b4b1ffefc1a (patch)
treeba1bfadb1a60d4b1a1ff103ad36d0fcffef90e5b /compiler/GHC/Core
parent4a7809284354025d07221f0aeca10a7992d23677 (diff)
downloadhaskell-wip/fix-notes3.tar.gz
Fix several note references, part 2wip/fix-notes3
Diffstat (limited to 'compiler/GHC/Core')
-rw-r--r--compiler/GHC/Core/InstEnv.hs2
-rw-r--r--compiler/GHC/Core/RoughMap.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Core/InstEnv.hs b/compiler/GHC/Core/InstEnv.hs
index 63dde6f6b5..45ecd4f2b5 100644
--- a/compiler/GHC/Core/InstEnv.hs
+++ b/compiler/GHC/Core/InstEnv.hs
@@ -965,7 +965,7 @@ lookupInstEnv check_overlap_safe
(m:_) | isIncoherent (fst m) -> NoUnifiers
_ -> all_unifs
- -- NOTE [Safe Haskell isSafeOverlap]
+ -- Note [Safe Haskell isSafeOverlap]
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- We restrict code compiled in 'Safe' mode from overriding code
-- compiled in any other mode. The rationale is that code compiled
diff --git a/compiler/GHC/Core/RoughMap.hs b/compiler/GHC/Core/RoughMap.hs
index cc64e96149..30145ee544 100644
--- a/compiler/GHC/Core/RoughMap.hs
+++ b/compiler/GHC/Core/RoughMap.hs
@@ -180,7 +180,7 @@ Where mightMatch is defined like this:
mightMatch [] [] = True -- A perfectly sized match might match
mightMatch key [] = True -- A shorter lookup key matches everything
mightMatch [] (_:_) = True -- If the lookup key is longer, then still might match
- -- Note [RoughMatch and beta reduction]
+ -- Note [RoughMap and beta reduction]
mightMatch (k:ks) (lk:lks) =
= case (k,lk) of
-- Standard case, matching on a specific known TyCon.