summaryrefslogtreecommitdiff
path: root/compiler/GHC/Rename
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Rename')
-rw-r--r--compiler/GHC/Rename/Bind.hs2
-rw-r--r--compiler/GHC/Rename/Env.hs4
-rw-r--r--compiler/GHC/Rename/Expr.hs6
-rw-r--r--compiler/GHC/Rename/Fixity.hs2
-rw-r--r--compiler/GHC/Rename/HsType.hs10
-rw-r--r--compiler/GHC/Rename/Module.hs6
-rw-r--r--compiler/GHC/Rename/Names.hs2
-rw-r--r--compiler/GHC/Rename/Pat.hs2
-rw-r--r--compiler/GHC/Rename/Splice.hs2
9 files changed, 18 insertions, 18 deletions
diff --git a/compiler/GHC/Rename/Bind.hs b/compiler/GHC/Rename/Bind.hs
index a70a3df06c..21789ef89a 100644
--- a/compiler/GHC/Rename/Bind.hs
+++ b/compiler/GHC/Rename/Bind.hs
@@ -767,7 +767,7 @@ rnPatSynBind sig_fn bind@(PSB { psb_id = L l name
Note [Renaming pattern synonym variables]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-We rename pattern synonym declaractions backwards to normal to reuse
+We rename pattern synonym declarations backwards to normal to reuse
the logic already implemented for renaming patterns.
We first rename the RHS of a declaration which brings into
diff --git a/compiler/GHC/Rename/Env.hs b/compiler/GHC/Rename/Env.hs
index 29184bf7f5..3d3ded48f0 100644
--- a/compiler/GHC/Rename/Env.hs
+++ b/compiler/GHC/Rename/Env.hs
@@ -762,7 +762,7 @@ data DisambigInfo
-- monoid will combine them to this failing case.
instance Outputable DisambigInfo where
- ppr NoOccurrence = text "NoOccurence"
+ ppr NoOccurrence = text "NoOccurrence"
ppr (UniqueOccurrence gre) = text "UniqueOccurrence:" <+> ppr gre
ppr (DisambiguatedOccurrence gre) = text "DiambiguatedOccurrence:" <+> ppr gre
ppr (AmbiguousOccurrence gres) = text "Ambiguous:" <+> ppr gres
@@ -866,7 +866,7 @@ of 'G' in the 'instance C S' decl is unambiguous, because C has only
one associated type called G. This is exactly what happens for methods,
and it is only consistent to do the same thing for types. That's the
role of the function lookupTcdName; the (Maybe Name) give the class of
-the encloseing instance decl, if any.
+the enclosing instance decl, if any.
Note [Looking up Exact RdrNames]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/compiler/GHC/Rename/Expr.hs b/compiler/GHC/Rename/Expr.hs
index eacaf6468a..9e7decb2ff 100644
--- a/compiler/GHC/Rename/Expr.hs
+++ b/compiler/GHC/Rename/Expr.hs
@@ -1382,7 +1382,7 @@ Note that
(c) The 'bs' in the second group must obviously not be captured by
the binding in the first group
-To satisfy (a) we nest the segements.
+To satisfy (a) we nest the segments.
To satisfy (b) we check for duplicates just before thing_inside.
To satisfy (c) we reset the LocalRdrEnv each time.
@@ -1809,7 +1809,7 @@ transformation loses the ability to do A and C in parallel.
The algorithm works by first splitting the sequence of statements into
independent "segments", and a separate "tail" (the final statement). In
-our example above, the segements would be
+our example above, the segments would be
[ x <- A
, y <- B x ]
@@ -2727,7 +2727,7 @@ mkExpandedExpr a b = XExpr (HsExpanded a b)
--
-- See Note [Overview of record dot syntax] in GHC.Hs.Expr.
--- mkGetField arg field calcuates a get_field @field arg expression.
+-- mkGetField arg field calculates a get_field @field arg expression.
-- e.g. z.x = mkGetField z x = get_field @x z
mkGetField :: Name -> LHsExpr GhcRn -> LocatedAn NoEpAnns FieldLabelString -> HsExpr GhcRn
mkGetField get_field arg field = unLoc (head $ mkGet get_field [arg] field)
diff --git a/compiler/GHC/Rename/Fixity.hs b/compiler/GHC/Rename/Fixity.hs
index 39462baf36..5c8fe36fcb 100644
--- a/compiler/GHC/Rename/Fixity.hs
+++ b/compiler/GHC/Rename/Fixity.hs
@@ -127,7 +127,7 @@ lookupFixityRn_help' :: Name
lookupFixityRn_help' name occ
| isUnboundName name
= return (False, Fixity NoSourceText minPrecedence InfixL)
- -- Minimise errors from ubound names; eg
+ -- Minimise errors from unbound names; eg
-- a>0 `foo` b>0
-- where 'foo' is not in scope, should not give an error (#7937)
diff --git a/compiler/GHC/Rename/HsType.hs b/compiler/GHC/Rename/HsType.hs
index 04c0c73adb..8c4e6c6ad7 100644
--- a/compiler/GHC/Rename/HsType.hs
+++ b/compiler/GHC/Rename/HsType.hs
@@ -1342,7 +1342,7 @@ mkHsOpTyRn prom1 op1 fix1 ty1 (L loc2 (HsOpTy _ prom2 ty2a op2 ty2b))
= do { fix2 <- lookupTyFixityRn op2
; mk_hs_op_ty prom1 op1 fix1 ty1 prom2 op2 fix2 ty2a ty2b loc2 }
-mkHsOpTyRn prom1 op1 _ ty1 ty2 -- Default case, no rearrangment
+mkHsOpTyRn prom1 op1 _ ty1 ty2 -- Default case, no rearrangement
= return (HsOpTy noAnn prom1 ty1 op1 ty2)
---------------
@@ -1410,7 +1410,7 @@ mkOpAppRn ReassociateNegation e1 op1 fix1 e2@(L _ (NegApp {})) -- NegApp can occ
---------------------------
-- Default case
-mkOpAppRn _ e1 op fix e2 -- Default case, no rearrangment
+mkOpAppRn _ e1 op fix e2 -- Default case, no rearrangement
= assertPpr (right_op_ok fix (unLoc e2))
(ppr e1 $$ text "---" $$ ppr op $$ text "---" $$ ppr fix $$ text "---" $$ ppr e2) $
return (OpApp fix e1 op e2)
@@ -1422,7 +1422,7 @@ data NegationHandling = ReassociateNegation | KeepNegationIntact
-- | Name of an operator in an operator application or section
data OpName = NormalOp Name -- ^ A normal identifier
| NegateOp -- ^ Prefix negation
- | UnboundOp OccName -- ^ An unbound indentifier
+ | UnboundOp OccName -- ^ An unbound identifier
| RecFldOp (FieldOcc GhcRn) -- ^ A record field occurrence
instance Outputable OpName where
@@ -1486,7 +1486,7 @@ mkOpFormRn e1@(L loc
(nofix_error, associate_right) = compareFixity fix1 fix2
-- Default case
-mkOpFormRn arg1 op fix arg2 -- Default case, no rearrangment
+mkOpFormRn arg1 op fix arg2 -- Default case, no rearrangement
= return (HsCmdArrForm noExtField op Infix (Just fix) [arg1, arg2])
@@ -1524,7 +1524,7 @@ mkConOpPatRn op2 fix2 p1@(L loc (ConPat NoExtField op1 (InfixCon p1a p1b))) p2
}
}
-mkConOpPatRn op _ p1 p2 -- Default case, no rearrangment
+mkConOpPatRn op _ p1 p2 -- Default case, no rearrangement
= assert (not_op_pat (unLoc p2)) $
return $ ConPat
{ pat_con_ext = noExtField
diff --git a/compiler/GHC/Rename/Module.hs b/compiler/GHC/Rename/Module.hs
index f387474244..6e196d2b60 100644
--- a/compiler/GHC/Rename/Module.hs
+++ b/compiler/GHC/Rename/Module.hs
@@ -1299,7 +1299,7 @@ with LHSs with a complicated desugaring (and hence unlikely to match);
(e.g. a case expression is not allowed: too elaborate.)
But there are legitimate non-trivial args ei, like sections and
-lambdas. So it seems simmpler not to check at all, and that is why
+lambdas. So it seems simpler not to check at all, and that is why
check_e is commented out.
-}
@@ -1396,7 +1396,7 @@ Note [Dependency analysis of type, class, and instance decls]
A TyClGroup represents a strongly connected components of
type/class/instance decls, together with the role annotations for the
type/class declarations. The renamer uses strongly connected
-comoponent analysis to build these groups. We do this for a number of
+component analysis to build these groups. We do this for a number of
reasons:
* Improve kind error messages. Consider
@@ -1516,7 +1516,7 @@ rnTyClDecls :: [TyClGroup GhcPs]
-> RnM ([TyClGroup GhcRn], FreeVars)
-- Rename the declarations and do dependency analysis on them
rnTyClDecls tycl_ds
- = do { -- Rename the type/class, instance, and role declaraations
+ = do { -- Rename the type/class, instance, and role declarations
; tycls_w_fvs <- mapM (wrapLocFstMA rnTyClDecl) (tyClGroupTyClDecls tycl_ds)
; let tc_names = mkNameSet (map (tcdName . unLoc . fst) tycls_w_fvs)
; kisigs_w_fvs <- rnStandaloneKindSignatures tc_names (tyClGroupKindSigs tycl_ds)
diff --git a/compiler/GHC/Rename/Names.hs b/compiler/GHC/Rename/Names.hs
index dce4daa562..8f47d2215e 100644
--- a/compiler/GHC/Rename/Names.hs
+++ b/compiler/GHC/Rename/Names.hs
@@ -116,7 +116,7 @@ we must also check that these rules hold transitively for all dependent modules
and packages. Doing this without caching any trust information would be very
slow as we would need to touch all packages and interface files a module depends
on. To avoid this we make use of the property that if a modules Safe Haskell
-mode changes, this triggers a recompilation from that module in the dependecy
+mode changes, this triggers a recompilation from that module in the dependency
graph. So we can just worry mostly about direct imports.
There is one trust property that can change for a package though without
diff --git a/compiler/GHC/Rename/Pat.hs b/compiler/GHC/Rename/Pat.hs
index 0d4760defd..7d8b54fa95 100644
--- a/compiler/GHC/Rename/Pat.hs
+++ b/compiler/GHC/Rename/Pat.hs
@@ -469,7 +469,7 @@ rnBindPat name_maker pat = runCps (rnLPatAndThen name_maker pat)
-}
-- ----------- Entry point 3: rnLPatAndThen -------------------
--- General version: parametrized by how you make new names
+-- General version: parameterized by how you make new names
rnLPatsAndThen :: NameMaker -> [LPat GhcPs] -> CpsRn [LPat GhcRn]
rnLPatsAndThen mk = mapM (rnLPatAndThen mk)
diff --git a/compiler/GHC/Rename/Splice.hs b/compiler/GHC/Rename/Splice.hs
index b56b15f625..48a8aa807f 100644
--- a/compiler/GHC/Rename/Splice.hs
+++ b/compiler/GHC/Rename/Splice.hs
@@ -429,7 +429,7 @@ mkQuasiQuoteExpr flavour quoter (L q_span' quote)
unqualSplice :: RdrName
-- The RdrName for a SplicePointName. See GHC.Hs.Expr
-- Note [Lifecycle of an untyped splice, and PendingRnSplice]
--- We use "spn" (which is arbitrary) because it is brief but greppable-for.
+-- We use "spn" (which is arbitrary) because it is brief but grepable-for.
unqualSplice = mkRdrUnqual (mkVarOccFS (fsLit "spn"))
rnUntypedSplice :: HsUntypedSplice GhcPs -> RnM (HsUntypedSplice GhcRn, FreeVars)