diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-01-18 17:07:40 +0100 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-01-18 17:46:45 +0100 |
commit | 70472bf2d862f976790f73e9dc7a0f3f7519ae1d (patch) | |
tree | 2d507cd90c936e32fb9ed73b8dfad27ba5762474 | |
parent | e324e317caab06fda232636c32e8a60d9e888a9c (diff) | |
download | haskell-70472bf2d862f976790f73e9dc7a0f3f7519ae1d.tar.gz |
Spelling fixes in comments [ci skip]
25 files changed, 28 insertions, 28 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 diff --git a/includes/RtsAPI.h b/includes/RtsAPI.h index 2c68219b8b..bf25c011fc 100644 --- a/includes/RtsAPI.h +++ b/includes/RtsAPI.h @@ -176,7 +176,7 @@ typedef struct _RTSStats { // ----------------------------------- // Cumulative stats about time use - // (we use signed values here because due to inacuracies in timers + // (we use signed values here because due to inaccuracies in timers // the values can occasionally go slightly negative) // Total CPU time used by the mutator diff --git a/includes/stg/MachRegs.h b/includes/stg/MachRegs.h index ab1a421c01..232ce03810 100644 --- a/includes/stg/MachRegs.h +++ b/includes/stg/MachRegs.h @@ -515,7 +515,7 @@ the stack. See Note [Overlapping global registers] for implications. VFPv2/VFPv3/NEON registers s0-s15/d0-d7/q0-q3 Argument / result/ scratch registers s16-s31/d8-d15/q4-q7 callee-saved registers (must be preserved across - subrutine calls) + subroutine calls) VFPv3/NEON registers (added to the VFPv2 registers set) d16-d31/q8-q15 Argument / result/ scratch registers @@ -572,7 +572,7 @@ the stack. See Note [Overlapping global registers] for implications. FPU/SIMD registers s/d/q/v0-v7 Argument / result/ scratch registers - s/d/q/v8-v15 callee-saved registers (must be preserved across subrutine calls, + s/d/q/v8-v15 callee-saved registers (must be preserved across subroutine calls, but only bottom 64-bit value needs to be preserved) s/d/q/v16-v31 temporary registers diff --git a/libraries/base/GHC/Stats.hsc b/libraries/base/GHC/Stats.hsc index ab4012da08..d5d48f5e61 100644 --- a/libraries/base/GHC/Stats.hsc +++ b/libraries/base/GHC/Stats.hsc @@ -86,7 +86,7 @@ data RTSStats = RTSStats { -- ----------------------------------- -- Cumulative stats about time use - -- (we use signed values here because due to inacuracies in timers + -- (we use signed values here because due to inaccuracies in timers -- the values can occasionally go slightly negative) -- | Total CPU time used by the mutator diff --git a/rts/linker/MachO.c b/rts/linker/MachO.c index af53a1fe61..55b2bf1ebc 100644 --- a/rts/linker/MachO.c +++ b/rts/linker/MachO.c @@ -1143,7 +1143,7 @@ ocRunInit_MachO ( ObjectCode *oc ) // flag. We should do this elsewhere in the Mach-O linker code // too. Note that the system linker will *refuse* to honor // sections which don't have this flag, so this could cause - // weird behavior divergence (albeit reproduceable). + // weird behavior divergence (albeit reproducible). if (0 == strcmp(sections[i].sectname,"__mod_init_func")) { char *init_startC = image + sections[i].offset; init_t *init = (init_t*)init_startC; diff --git a/testsuite/tests/gadt/Makefile b/testsuite/tests/gadt/Makefile index 2df535b6ae..db4e0521a4 100644 --- a/testsuite/tests/gadt/Makefile +++ b/testsuite/tests/gadt/Makefile @@ -4,7 +4,7 @@ include $(TOP)/mk/test.mk .PHONY: gadt17 gadt23 -# A mulit-module test that made GHC 6.4.1 crash +# A multi-module test that made GHC 6.4.1 crash gadt17: @$(RM) gadt17.hi Gadt17_help.hi @$(RM) A$(OBJSUFFIX) diff --git a/testsuite/tests/safeHaskell/safeLanguage/Makefile b/testsuite/tests/safeHaskell/safeLanguage/Makefile index 1662c8066f..83ef0953f8 100644 --- a/testsuite/tests/safeHaskell/safeLanguage/Makefile +++ b/testsuite/tests/safeHaskell/safeLanguage/Makefile @@ -39,7 +39,7 @@ safeRecomp01: cleanSafeRecomp02: rm -rf SafeRecomp02 SafeRecomp02.o SafeRecomp02.hi SafeRecomp02_A.o SafeRecomp02_A.hi -# mutli module program +# multi module program safeRecomp02: $(MAKE) -s --no-print-directory cleanSafeRecomp02 |