Commit a9ae83af authored by Krzysztof Gogolewski's avatar Krzysztof Gogolewski Committed by Marge Bot
Browse files

Fix typos in comments

[skip ci]
parent 1edd6d21
......@@ -1689,7 +1689,7 @@ points so that the code is readable with its original meaning.
So scattered through "GHC.ThToHs" are various points where parens are added.
See (among other closed issued)
See (among other closed issues)
-- ---------------------------------------------------------------------
......@@ -1564,7 +1564,7 @@ Note [seqId magic]
a) Its fixity is set in GHC.Iface.Load.ghcPrimIface
b) It has quite a bit of desugaring magic.
See GHC.HsToCore.Utils Note [Desugaring seq (1)] and (2) and (3)
See GHC.HsToCore.Utils Note [Desugaring seq] (1) and (2) and (3)
c) There is some special rule handing: Note [User-defined RULES for seq]
......@@ -1748,7 +1748,7 @@ definition in Core. The rewrite rule works as follows:
f (x `cast` co a) y
The `co` coercion is the newtype-coercion extracted from the type-class.
The type class is obtain by looking at the type of wrap.
The type class is obtained by looking at the type of wrap.
......@@ -257,7 +257,7 @@ class LanguageExtension(GenericFlag):
def _noname(name):
# We check isupper() so that NondecreasingIndentation
# is not counted as "No-decreasingIndentation"
# is not counted as "No-ndecreasingIndentation"
if name[:2] == "No" and name[2].isupper():
return name[2:]
......@@ -497,7 +497,7 @@ labelThread (ThreadId t) str =
case labelThread# t p s of s1 -> (# s1, () #)
-- Nota Bene: 'pseq' used to be 'seq'
-- but 'seq' is now defined in PrelGHC
-- but 'seq' is now defined in GHC.Prim
-- "pseq" is defined a bit weirdly (see below)
......@@ -82,7 +82,7 @@ someNatVal n = withSNat SomeNat (SNat n) Proxy
{- Note [NOINLINE someNatVal]
`someNatVal` converts a natural number to an existentially quantified
dictionary for `KnowNat` (aka `SomeNat`). The existential quantification
dictionary for `KnownNat` (aka `SomeNat`). The existential quantification
is very important, as it captures the fact that we don't know the type
statically, although we do know that it exists. Because this type is
fully opaque, we should never be able to prove that it matches anything else.
......@@ -277,7 +277,7 @@ unsafeEqualityProof = case unsafeEqualityProof @a @b of UnsafeRefl -> UnsafeRefl
-- are the same -- but the proof of that relies on the complex, trusted
-- implementation of @Typeable@.
-- 4. The "reflection trick", which takes advantanage of the fact that in
-- 4. The "reflection trick", which takes advantage of the fact that in
-- @class C a where { op :: ty }@, we can safely coerce between @C a@ and @ty@
-- (which have different kinds!) because it's really just a newtype.
-- Note: there is /no guarantee, at all/ that this behavior will be supported
......@@ -10,7 +10,7 @@
#include "MachDeps.h"
-- See note [When do out-of-line primops go in primops.txt.pp]. More primops
-- there are elgible according to the description below, but cannot yet be moved
-- there are eligible according to the description below, but cannot yet be moved
-- here because of superficial restrictions to `foreign import prim`. Hopefully
-- that is fixed soon.
......@@ -10,4 +10,4 @@ newtype T :: Type where
MkT :: Int -> (T :: Star)
-- The error message is pretty terrible
-- but it probably nevery happens in practice
-- but it probably never happens in practice
......@@ -274,7 +274,7 @@ gen_hs_source (Info defaults entries) =
-- with Declaration for $fEqMaybe:
-- attempting to use module ‘GHC.Classes’
-- (libraries/ghc-prim/./GHC/Classes.hs) which is not loaded
-- coming from GHC.IFace.Load.homeModError
-- coming from GHC.Iface.Load.homeModError
-- I'm not sure precisely why; but I *am* sure that we don't need
-- any type-class defaulting; and it's clearly wrong to need
-- the base package when haddocking ghc-prim
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment