summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2017-01-18 17:07:40 +0100
committerGabor Greif <ggreif@gmail.com>2017-01-18 17:46:45 +0100
commit70472bf2d862f976790f73e9dc7a0f3f7519ae1d (patch)
tree2d507cd90c936e32fb9ed73b8dfad27ba5762474 /compiler
parente324e317caab06fda232636c32e8a60d9e888a9c (diff)
downloadhaskell-70472bf2d862f976790f73e9dc7a0f3f7519ae1d.tar.gz
Spelling fixes in comments [ci skip]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/basicTypes/BasicTypes.hs2
-rw-r--r--compiler/basicTypes/RdrName.hs2
-rw-r--r--compiler/coreSyn/CoreSyn.hs2
-rw-r--r--compiler/coreSyn/CoreUnfold.hs2
-rw-r--r--compiler/deSugar/PmExpr.hs2
-rw-r--r--compiler/iface/TcIface.hs2
-rw-r--r--compiler/llvmGen/Llvm/AbsSyn.hs2
-rw-r--r--compiler/llvmGen/Llvm/MetaData.hs2
-rw-r--r--compiler/rename/RnTypes.hs2
-rw-r--r--compiler/simplCore/Simplify.hs2
-rw-r--r--compiler/stranal/WwLib.hs4
-rw-r--r--compiler/typecheck/TcHsType.hs2
-rw-r--r--compiler/typecheck/TcRnTypes.hs4
-rw-r--r--compiler/typecheck/TcSMonad.hs2
-rw-r--r--compiler/typecheck/TcSimplify.hs2
-rw-r--r--compiler/typecheck/TcTyDecls.hs2
-rw-r--r--compiler/types/TyCon.hs2
-rw-r--r--compiler/utils/Pretty.hs2
-rw-r--r--compiler/vectorise/Vectorise/Vect.hs2
19 files changed, 21 insertions, 21 deletions
diff --git a/compiler/basicTypes/BasicTypes.hs b/compiler/basicTypes/BasicTypes.hs
index 7e1f2c7b70..5f73843ccf 100644
--- a/compiler/basicTypes/BasicTypes.hs
+++ b/compiler/basicTypes/BasicTypes.hs
@@ -910,7 +910,7 @@ instance Outputable OccInfo where
{-
************************************************************************
* *
- Default method specfication
+ Default method specification
* *
************************************************************************
diff --git a/compiler/basicTypes/RdrName.hs b/compiler/basicTypes/RdrName.hs
index c4e3228274..490ab47b4d 100644
--- a/compiler/basicTypes/RdrName.hs
+++ b/compiler/basicTypes/RdrName.hs
@@ -1147,7 +1147,7 @@ instance Ord ImpItemSpec where
bestImport :: [ImportSpec] -> ImportSpec
-- Given a non-empty bunch of ImportSpecs, return the one that
--- imported the item most specficially (e.g. by name), using
+-- imported the item most specifically (e.g. by name), using
-- textually-first as a tie breaker. This is used when reporting
-- redundant imports
bestImport iss
diff --git a/compiler/coreSyn/CoreSyn.hs b/compiler/coreSyn/CoreSyn.hs
index 81386e928b..317a78d30d 100644
--- a/compiler/coreSyn/CoreSyn.hs
+++ b/compiler/coreSyn/CoreSyn.hs
@@ -801,7 +801,7 @@ chooseOrphanAnchor :: NameSet -> IsOrphan
-- Something (rule, instance) is relate to all the Names in this
-- list. Choose one of them to be an "anchor" for the orphan. We make
-- the choice deterministic to avoid gratuitious changes in the ABI
--- hash (Trac #4012). Specficially, use lexicographic comparison of
+-- hash (Trac #4012). Specifically, use lexicographic comparison of
-- OccName rather than comparing Uniques
--
-- NB: 'minimum' use Ord, and (Ord OccName) works lexicographically
diff --git a/compiler/coreSyn/CoreUnfold.hs b/compiler/coreSyn/CoreUnfold.hs
index 7356d41cb4..f7e42659c2 100644
--- a/compiler/coreSyn/CoreUnfold.hs
+++ b/compiler/coreSyn/CoreUnfold.hs
@@ -1369,7 +1369,7 @@ However, watch out:
Note [Interaction of exprIsWorkFree and lone variables]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The lone-variable test says "don't inline if a case expression
-scrutines a lone variable whose unfolding is cheap". It's very
+scrutinises a lone variable whose unfolding is cheap". It's very
important that, under these circumstances, exprIsConApp_maybe
can spot a constructor application. So, for example, we don't
consider
diff --git a/compiler/deSugar/PmExpr.hs b/compiler/deSugar/PmExpr.hs
index 48044f912e..e45984df64 100644
--- a/compiler/deSugar/PmExpr.hs
+++ b/compiler/deSugar/PmExpr.hs
@@ -256,7 +256,7 @@ hsExprToPmExpr e@(ExplicitList _elem_ty mb_ol elems)
hsExprToPmExpr (ExplicitPArr _elem_ty elems)
= PmExprCon (parrFakeCon (length elems)) (map lhsExprToPmExpr elems)
--- we want this but we would have to make evrything monadic :/
+-- we want this but we would have to make everything monadic :/
-- ./compiler/deSugar/DsMonad.hs:397:dsLookupDataCon :: Name -> DsM DataCon
--
-- hsExprToPmExpr (RecordCon c _ binds) = do
diff --git a/compiler/iface/TcIface.hs b/compiler/iface/TcIface.hs
index 176d8743fc..3c8742edaf 100644
--- a/compiler/iface/TcIface.hs
+++ b/compiler/iface/TcIface.hs
@@ -517,7 +517,7 @@ interface files for types mentioned in the arg types.
E.g.
data Foo.S = MkS Baz.T
-Mabye we can get away without even loading the interface for Baz!
+Maybe we can get away without even loading the interface for Baz!
This is not just a performance thing. Suppose we have
data Foo.S = MkS Baz.T
diff --git a/compiler/llvmGen/Llvm/AbsSyn.hs b/compiler/llvmGen/Llvm/AbsSyn.hs
index 774e555170..45d79f5251 100644
--- a/compiler/llvmGen/Llvm/AbsSyn.hs
+++ b/compiler/llvmGen/Llvm/AbsSyn.hs
@@ -151,7 +151,7 @@ data LlvmStatement
| Store LlvmVar LlvmVar
{- |
- Mutliway branch
+ Multiway branch
* scrutinee: Variable or constant which must be of integer type that is
determines which arm is chosen.
* def: The default label if there is no match in target.
diff --git a/compiler/llvmGen/Llvm/MetaData.hs b/compiler/llvmGen/Llvm/MetaData.hs
index 6f3ced56dc..5fe9e37ddc 100644
--- a/compiler/llvmGen/Llvm/MetaData.hs
+++ b/compiler/llvmGen/Llvm/MetaData.hs
@@ -11,7 +11,7 @@ import Outputable
-- following design:
-- * Metadata can be constructed in a few different ways (See below).
-- * After which it can either be attached to LLVM statements to pass along
--- extra information to the optimizer and code generator OR specificially named
+-- extra information to the optimizer and code generator OR specifically named
-- metadata has an affect on the whole module (i.e., linking behaviour).
--
--
diff --git a/compiler/rename/RnTypes.hs b/compiler/rename/RnTypes.hs
index fec7627614..6cd6ea805e 100644
--- a/compiler/rename/RnTypes.hs
+++ b/compiler/rename/RnTypes.hs
@@ -1231,7 +1231,7 @@ get_op other = pprPanic "get_op" (ppr other)
-- Parser left-associates everything, but
-- derived instances may have correctly-associated things to
--- in the right operarand. So we just check that the right operand is OK
+-- in the right operand. So we just check that the right operand is OK
right_op_ok :: Fixity -> HsExpr Name -> Bool
right_op_ok fix1 (OpApp _ _ fix2 _)
= not error_please && associate_right
diff --git a/compiler/simplCore/Simplify.hs b/compiler/simplCore/Simplify.hs
index 6291369579..fb31784e2d 100644
--- a/compiler/simplCore/Simplify.hs
+++ b/compiler/simplCore/Simplify.hs
@@ -2576,7 +2576,7 @@ Consider this
If we make a join point with c but not c# we get
$j = \c -> ....c....
-But if later inlining scrutines the c, thus
+But if later inlining scrutinises the c, thus
$j = \c -> ... case c of { I# y -> ... } ...
diff --git a/compiler/stranal/WwLib.hs b/compiler/stranal/WwLib.hs
index 1370bbce06..e342ea1abd 100644
--- a/compiler/stranal/WwLib.hs
+++ b/compiler/stranal/WwLib.hs
@@ -532,7 +532,7 @@ bug. The fix here is simply to decline to do w/w if that happens.
************************************************************************
* *
- Type scrutiny that is specfic to demand analysis
+ Type scrutiny that is specific to demand analysis
* *
************************************************************************
@@ -541,7 +541,7 @@ Note [Do not unpack class dictionaries]
If we have
f :: Ord a => [a] -> Int -> a
{-# INLINABLE f #-}
-and we worker/wrapper f, we'll get a worker with an INLINALBE pragma
+and we worker/wrapper f, we'll get a worker with an INLINABLE pragma
(see Note [Worker-wrapper for INLINABLE functions] in WorkWrap), which
can still be specialised by the type-class specialiser, something like
fw :: Ord a => [a] -> Int# -> a
diff --git a/compiler/typecheck/TcHsType.hs b/compiler/typecheck/TcHsType.hs
index c69de3ad5d..107f4f9162 100644
--- a/compiler/typecheck/TcHsType.hs
+++ b/compiler/typecheck/TcHsType.hs
@@ -1785,7 +1785,7 @@ tcHsPartialSigType
-> LHsSigWcType Name -- The type signature
-> TcM ( [(Name, TcTyVar)] -- Wildcards
, Maybe TcTyVar -- Extra-constraints wildcard
- , [TcTyVar] -- Implicitly and explicitly bound type varialbes
+ , [TcTyVar] -- Implicitly and explicitly bound type variables
, TcThetaType -- Theta part
, TcType ) -- Tau part
tcHsPartialSigType ctxt sig_ty
diff --git a/compiler/typecheck/TcRnTypes.hs b/compiler/typecheck/TcRnTypes.hs
index 23883487cf..40638e7578 100644
--- a/compiler/typecheck/TcRnTypes.hs
+++ b/compiler/typecheck/TcRnTypes.hs
@@ -2565,8 +2565,8 @@ Consider f1 = (Given, ReprEq)
f = (Derived, ReprEq)
I thought maybe we could never get Derived ReprEq constraints, but
-we can; straight from the Wanteds during improvment. And from a Derived
-ReprEq we could conceivably get a Derived NomEq improvment (by decomposing
+we can; straight from the Wanteds during improvement. And from a Derived
+ReprEq we could conceivably get a Derived NomEq improvement (by decomposing
a type constructor with Nomninal role), and hence unify.
-}
diff --git a/compiler/typecheck/TcSMonad.hs b/compiler/typecheck/TcSMonad.hs
index 1d0ddb38d2..1dca0c31ce 100644
--- a/compiler/typecheck/TcSMonad.hs
+++ b/compiler/typecheck/TcSMonad.hs
@@ -423,7 +423,7 @@ emptyInert
{- Note [Solved dictionaries]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-When we apply a top-level instance declararation, we add the "solved"
+When we apply a top-level instance declaration, we add the "solved"
dictionary to the inert_solved_dicts. In general, we use it to avoid
creating a new EvVar when we have a new goal that we have solved in
the past.
diff --git a/compiler/typecheck/TcSimplify.hs b/compiler/typecheck/TcSimplify.hs
index 15aaaa8b50..c8af1f32fa 100644
--- a/compiler/typecheck/TcSimplify.hs
+++ b/compiler/typecheck/TcSimplify.hs
@@ -953,7 +953,7 @@ over them, for two reasons
add it to the ic_skols of the residual implication.
Note that we /only/ do this to the residual implication. We don't
- complicate the quantified type varialbes of 'f' for downstream code;
+ complicate the quantified type variables of 'f' for downstream code;
it's just a device to make the error message generator know what to
report.
diff --git a/compiler/typecheck/TcTyDecls.hs b/compiler/typecheck/TcTyDecls.hs
index ae9f16d70f..7b69bad264 100644
--- a/compiler/typecheck/TcTyDecls.hs
+++ b/compiler/typecheck/TcTyDecls.hs
@@ -3,7 +3,7 @@
(c) The GRASP/AQUA Project, Glasgow University, 1992-1999
-Analysis functions over data types. Specficially, detecting recursive types.
+Analysis functions over data types. Specifically, detecting recursive types.
This stuff is only used for source-code decls; it's recorded in interface
files for imported data types.
diff --git a/compiler/types/TyCon.hs b/compiler/types/TyCon.hs
index 36149187c6..fdb6aaaf1a 100644
--- a/compiler/types/TyCon.hs
+++ b/compiler/types/TyCon.hs
@@ -533,7 +533,7 @@ data TyCon
}
-- | Algebraic data types, from
- -- - @data@ declararations
+ -- - @data@ declarations
-- - @newtype@ declarations
-- - data instance declarations
-- - type instance declarations
diff --git a/compiler/utils/Pretty.hs b/compiler/utils/Pretty.hs
index 5b025d5c05..a4d67f03a0 100644
--- a/compiler/utils/Pretty.hs
+++ b/compiler/utils/Pretty.hs
@@ -566,7 +566,7 @@ above (Above p g1 q1) g2 q2 = above p g1 (above q1 g2 q2)
above p@(Beside{}) g q = aboveNest (reduceDoc p) g 0 (reduceDoc q)
above p g q = aboveNest p g 0 (reduceDoc q)
--- Specfication: aboveNest p g k q = p $g$ (nest k q)
+-- Specification: aboveNest p g k q = p $g$ (nest k q)
aboveNest :: RDoc -> Bool -> Int -> RDoc -> RDoc
aboveNest _ _ k _ | k `seq` False = undefined
aboveNest NoDoc _ _ _ = NoDoc
diff --git a/compiler/vectorise/Vectorise/Vect.hs b/compiler/vectorise/Vectorise/Vect.hs
index 436c78e6c0..03492291d6 100644
--- a/compiler/vectorise/Vectorise/Vect.hs
+++ b/compiler/vectorise/Vectorise/Vect.hs
@@ -113,7 +113,7 @@ vVarApps lc (ve, le) vvs
(vs, ls) = unzip vvs
-vCaseDEFAULT :: VExpr -- scrutiniy
+vCaseDEFAULT :: VExpr -- scrutinee
-> VVar -- bnder
-> Type -- type of vectorised version
-> Type -- type of lifted version