summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2017-03-24 11:21:52 +0100
committerGabor Greif <ggreif@gmail.com>2017-03-24 11:46:35 +0100
commit1dd60ac9a949157da89d4e6e1f8203e746be58f3 (patch)
tree5b7ca1ae64fbb7b244657fc84b7fabd1efe80fc8 /compiler
parentfc41fdc6423b91eef52c1f4c73a9be5e9dea17b9 (diff)
downloadhaskell-1dd60ac9a949157da89d4e6e1f8203e746be58f3.tar.gz
Typos in comments (notes too) [ci skip]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/basicTypes/NameEnv.hs2
-rw-r--r--compiler/coreSyn/CoreOpt.hs12
-rw-r--r--compiler/nativeGen/RegAlloc/Graph/ArchBase.hs2
-rw-r--r--compiler/simplCore/CallArity.hs11
-rw-r--r--compiler/simplCore/Simplify.hs2
-rw-r--r--compiler/specialise/Specialise.hs2
-rw-r--r--compiler/typecheck/TcHsType.hs2
7 files changed, 16 insertions, 17 deletions
diff --git a/compiler/basicTypes/NameEnv.hs b/compiler/basicTypes/NameEnv.hs
index 640084b403..a0eb933469 100644
--- a/compiler/basicTypes/NameEnv.hs
+++ b/compiler/basicTypes/NameEnv.hs
@@ -61,7 +61,7 @@ depAnal :: (node -> [Name]) -- Defs
-> (node -> [Name]) -- Uses
-> [node]
-> [SCC node]
--- Peform dependency analysis on a group of definitions,
+-- Perform dependency analysis on a group of definitions,
-- where each definition may define more than one Name
--
-- The get_defs and get_uses functions are called only once per node
diff --git a/compiler/coreSyn/CoreOpt.hs b/compiler/coreSyn/CoreOpt.hs
index 98a590bb3d..da58a4b500 100644
--- a/compiler/coreSyn/CoreOpt.hs
+++ b/compiler/coreSyn/CoreOpt.hs
@@ -143,7 +143,7 @@ simpleOptPgm dflags this_mod binds rules vects
rules' = substRulesForImportedIds final_subst rules
vects' = substVects final_subst vects
-- We never unconditionally inline into rules,
- -- hence pasing just a substitution
+ -- hence paying just a substitution
do_one (env, binds') bind
= case simple_opt_bind env bind of
@@ -686,9 +686,9 @@ Moreover, since g is going to be inlined anyway, there is no benefit
from making it a join point.
If it is recursive, and uselessly marked INLINE, this will stop us
-making it a join point, which is a annoying. But occasionally
+making it a join point, which is annoying. But occasionally
(notably in class methods; see Note [Instances and loop breakers] in
-TcInstDcls) we mark recurive things as INLINE but the recursion
+TcInstDcls) we mark recursive things as INLINE but the recursion
unravels; so ignoring INLINE pragmas on recursive things isn't good
either.
@@ -755,7 +755,7 @@ data ConCont = CC [CoreExpr] Coercion
-- | Returns @Just (dc, [t1..tk], [x1..xn])@ if the argument expression is
-- a *saturated* constructor application of the form @dc t1..tk x1 .. xn@,
--- where t1..tk are the *universally-qantified* type args of 'dc'
+-- where t1..tk are the *universally-quantified* type args of 'dc'
exprIsConApp_maybe :: InScopeEnv -> CoreExpr -> Maybe (DataCon, [Type], [CoreExpr])
exprIsConApp_maybe (in_scope, id_unf) expr
= go (Left in_scope) expr (CC [] (mkRepReflCo (exprType expr)))
@@ -961,7 +961,7 @@ Here we implement the "push rules" from FC papers:
(K e1 .. en) |> co
and we want to tranform to
(K e1' .. en')
- by pushing the coercion into the oarguments
+ by pushing the coercion into the arguments
-}
pushCoArgs :: Coercion -> [CoreArg] -> Maybe ([CoreArg], Coercion)
@@ -1081,7 +1081,7 @@ pushCoDataCon dc dc_args co
-- (C x y) `cast` (g :: T a ~ S [a]),
-- where S is a type function. In fact, exprIsConApp
-- will probably not be called in such circumstances,
- -- but there't nothing wrong with it
+ -- but there's nothing wrong with it
= let
tc_arity = tyConArity to_tc
diff --git a/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs b/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs
index 5731f18234..6771e4ecb9 100644
--- a/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs
+++ b/compiler/nativeGen/RegAlloc/Graph/ArchBase.hs
@@ -27,7 +27,7 @@ import Unique
-- Some basic register classes.
--- These aren't nessesarally in 1-to-1 correspondance with the allocatable
+-- These aren't necessarily in 1-to-1 correspondence with the allocatable
-- RegClasses in MachRegs.hs
data RegClass
-- general purpose regs
diff --git a/compiler/simplCore/CallArity.hs b/compiler/simplCore/CallArity.hs
index c051dae456..1eb4fa22fd 100644
--- a/compiler/simplCore/CallArity.hs
+++ b/compiler/simplCore/CallArity.hs
@@ -16,7 +16,6 @@ import CoreSyn
import Id
import CoreArity ( typeArity )
import CoreUtils ( exprIsCheap, exprIsTrivial )
---import Outputable
import UnVarGraph
import Demand
@@ -26,7 +25,7 @@ import Control.Arrow ( first, second )
{-
%************************************************************************
%* *
- Call Arity Analyis
+ Call Arity Analysis
%* *
%************************************************************************
@@ -76,7 +75,7 @@ correct.
What we want to know from an expression
---------------------------------------
-In order to obtain that information for variables, we analyize expression and
+In order to obtain that information for variables, we analyze expression and
obtain bits of information:
I. The arity analysis:
@@ -95,7 +94,7 @@ For efficiency reasons, we gather this information only for a set of
The two analysis are not completely independent, as a higher arity can improve
the information about what variables are being called once or multiple times.
-Note [Analysis I: The arity analyis]
+Note [Analysis I: The arity analysis]
------------------------------------
The arity analysis is quite straight forward: The information about an
@@ -104,7 +103,7 @@ expression is an
where absent variables are bound to Nothing and otherwise to a lower bound to
their arity.
-When we analyize an expression, we analyize it with a given context arity.
+When we analyze an expression, we analyze it with a given context arity.
Lambdas decrease and applications increase the incoming arity. Analysizing a
variable will put that arity in the environment. In lets or cases all the
results from the various subexpressions are lubed, which takes the point-wise
@@ -687,7 +686,7 @@ trimArity v a = minimum [a, max_arity_by_type, max_arity_by_strsig]
---------------------------------------
-- Result type for the two analyses.
--- See Note [Analysis I: The arity analyis]
+-- See Note [Analysis I: The arity analysis]
-- and Note [Analysis II: The Co-Called analysis]
type CallArityRes = (UnVarGraph, VarEnv Arity)
diff --git a/compiler/simplCore/Simplify.hs b/compiler/simplCore/Simplify.hs
index 4b158b607a..fae040f47a 100644
--- a/compiler/simplCore/Simplify.hs
+++ b/compiler/simplCore/Simplify.hs
@@ -2238,7 +2238,7 @@ inlined.
Historical note: we use to do the "case binder swap" in the Simplifier
so there were additional complications if the scrutinee was a variable.
-Now the binder-swap stuff is done in the occurrence analyer; see
+Now the binder-swap stuff is done in the occurrence analyser; see
OccurAnal Note [Binder swap].
Note [knownCon occ info]
diff --git a/compiler/specialise/Specialise.hs b/compiler/specialise/Specialise.hs
index 0dd295d695..37afca5e6f 100644
--- a/compiler/specialise/Specialise.hs
+++ b/compiler/specialise/Specialise.hs
@@ -1292,7 +1292,7 @@ specCalls mb_mod env rules_for_me calls_for_me fn rhs
herald = case mb_mod of
Nothing -- Specialising local fn
-> text "SPEC"
- Just this_mod -- Specialising imoprted fn
+ Just this_mod -- Specialising imported fn
-> text "SPEC/" <> ppr this_mod
rule_name = mkFastString $ showSDoc dflags $
diff --git a/compiler/typecheck/TcHsType.hs b/compiler/typecheck/TcHsType.hs
index e5dcd7ccc6..99fc6dd901 100644
--- a/compiler/typecheck/TcHsType.hs
+++ b/compiler/typecheck/TcHsType.hs
@@ -1081,7 +1081,7 @@ Note [Body kind of a HsForAllTy]
The body of a forall is usually a type, but in principle
there's no reason to prohibit *unlifted* types.
In fact, GHC can itself construct a function with an
-unboxed tuple inside a for-all (via CPR analyis; see
+unboxed tuple inside a for-all (via CPR analysis; see
typecheck/should_compile/tc170).
Moreover in instance heads we get forall-types with