diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-04-04 10:49:51 +0200 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-04-05 15:27:05 +0200 |
commit | 577f3da7b81920c427c394871c86a523627e14e9 (patch) | |
tree | 955cceaab5020990725284b1aff2c26d5aab7191 /compiler | |
parent | ce9b6170b0ac9ff417000d8e7bdff7b2298f2978 (diff) | |
download | haskell-577f3da7b81920c427c394871c86a523627e14e9.tar.gz |
Typos in comments [ci skip]
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/hsSyn/HsExpr.hs | 2 | ||||
-rw-r--r-- | compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 2 | ||||
-rw-r--r-- | compiler/nativeGen/RegAlloc/Graph/SpillCost.hs | 2 | ||||
-rw-r--r-- | compiler/specialise/SpecConstr.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcRnDriver.hs | 2 | ||||
-rw-r--r-- | compiler/utils/Util.hs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/compiler/hsSyn/HsExpr.hs b/compiler/hsSyn/HsExpr.hs index f627056d17..f3cc3d0861 100644 --- a/compiler/hsSyn/HsExpr.hs +++ b/compiler/hsSyn/HsExpr.hs @@ -1612,7 +1612,7 @@ type GuardLStmt id = LStmt id (LHsExpr id) -- | Guard Statement type GuardStmt id = Stmt id (LHsExpr id) --- | Ghci Located Statemnt +-- | Ghci Located Statement type GhciLStmt id = LStmt id (LHsExpr id) -- | Ghci Statement diff --git a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs index 40c5498255..f1383c660e 100644 --- a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs +++ b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs @@ -62,7 +62,7 @@ genLlvmProc _ = panic "genLlvmProc: case that shouldn't reach here!" -- -- | Generate code for a list of blocks that make up a complete --- procedure. The first block in the list is exepected to be the entry +-- procedure. The first block in the list is expected to be the entry -- point and will get the prologue. basicBlocksCodeGen :: LiveGlobalRegs -> [CmmBlock] -> LlvmM ([LlvmBasicBlock], [LlvmCmmDecl]) diff --git a/compiler/nativeGen/RegAlloc/Graph/SpillCost.hs b/compiler/nativeGen/RegAlloc/Graph/SpillCost.hs index 0817b3941a..82976c08aa 100644 --- a/compiler/nativeGen/RegAlloc/Graph/SpillCost.hs +++ b/compiler/nativeGen/RegAlloc/Graph/SpillCost.hs @@ -165,7 +165,7 @@ chooseSpill info graph -- cost = sum loadCost * freq (u) + sum storeCost * freq (d) -- u <- uses (v) d <- defs (v) -- --- There are no loops in our code at the momemnt, so we can set the freq's to 1. +-- There are no loops in our code at the moment, so we can set the freq's to 1. -- -- If we don't have live range splitting then Chaitins function performs badly -- if we have lots of nested live ranges and very few registers. diff --git a/compiler/specialise/SpecConstr.hs b/compiler/specialise/SpecConstr.hs index 71628410c8..cd5a90cecd 100644 --- a/compiler/specialise/SpecConstr.hs +++ b/compiler/specialise/SpecConstr.hs @@ -1749,7 +1749,7 @@ the passed-in RuleInfo, unless there are no calls at all to the function. The caller can, indeed must, assume this. He should not combine in rhs_usg himself, or he'll get rhs_usg twice -- and that can lead to an exponential blowup of duplicates in the CallEnv. This is what gave rise to the massive -performace loss in Trac #8852. +performance loss in Trac #8852. Note [Specialise original body] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/compiler/typecheck/TcRnDriver.hs b/compiler/typecheck/TcRnDriver.hs index b02fdf5472..45df4acd13 100644 --- a/compiler/typecheck/TcRnDriver.hs +++ b/compiler/typecheck/TcRnDriver.hs @@ -2012,7 +2012,7 @@ tcUserStmt (L loc (BodyStmt expr _ _ _)) ; when (isUnitTy $ it_ty) failM ; return stuff }, - -- Plan B; a naked bind statment + -- Plan B; a naked bind statement tcGhciStmts [bind_stmt], -- Plan C; check that the let-binding is typeable all by itself. diff --git a/compiler/utils/Util.hs b/compiler/utils/Util.hs index db6666cce6..1c519ebeef 100644 --- a/compiler/utils/Util.hs +++ b/compiler/utils/Util.hs @@ -309,7 +309,7 @@ splitEithers (e : es) = case e of where (xs,ys) = splitEithers es chkAppend :: [a] -> [a] -> [a] --- Checks for the second arguemnt being empty +-- Checks for the second argument being empty -- Used in situations where that situation is common chkAppend xs ys | null ys = xs |