summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2019-12-09 12:05:15 -0500
committerBen Gamari <ben@well-typed.com>2019-12-09 12:05:15 -0500
commitd46a72e19e1b508358827e7270139f3273915697 (patch)
tree6eb25ced737bf3f88591c880669d94f5b172560f
parent0a4ca9eb152c6bfbc3aad71c180a38bbfeca5bfb (diff)
downloadhaskell-d46a72e19e1b508358827e7270139f3273915697.tar.gz
Fix comment typos
The below is only necessary to fix the CI perf fluke that happened in 9897e8c8ef0b19a9571ef97a1d9bb050c1ee9121: ------------------------- Metric Decrease: T5837 T6048 T9020 T12425 T12234 T13035 T12150 Naperian -------------------------
-rw-r--r--compiler/GHC/StgToCmm/Expr.hs2
-rw-r--r--libraries/base/GHC/IO.hs2
-rw-r--r--rts/sm/Storage.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/StgToCmm/Expr.hs b/compiler/GHC/StgToCmm/Expr.hs
index 07113a4e82..38d35fc031 100644
--- a/compiler/GHC/StgToCmm/Expr.hs
+++ b/compiler/GHC/StgToCmm/Expr.hs
@@ -572,7 +572,7 @@ isSimpleScrut _ _ = return False
isSimpleOp :: StgOp -> [StgArg] -> FCode Bool
-- True iff the op cannot block or allocate
isSimpleOp (StgFCallOp (CCall (CCallSpec _ _ safe)) _) _ = return $! not (playSafe safe)
--- dataToTag# evalautes its argument, see Note [dataToTag#] in primops.txt.pp
+-- dataToTag# evaluates its argument, see Note [dataToTag#] in primops.txt.pp
isSimpleOp (StgPrimOp DataToTagOp) _ = return False
isSimpleOp (StgPrimOp op) stg_args = do
arg_exprs <- getNonVoidArgAmodes stg_args
diff --git a/libraries/base/GHC/IO.hs b/libraries/base/GHC/IO.hs
index 8fbdc8ef24..55291cca4b 100644
--- a/libraries/base/GHC/IO.hs
+++ b/libraries/base/GHC/IO.hs
@@ -171,7 +171,7 @@ catchException !io handler = catch io handler
-- might catch either. If you are calling @catch@ with type
-- @IO Int -> (ArithException -> IO Int) -> IO Int@ then the handler may
-- get run with @DivideByZero@ as an argument, or an @ErrorCall \"urk\"@
--- exception may be propogated further up. If you call it again, you
+-- exception may be propagated further up. If you call it again, you
-- might get a the opposite behaviour. This is ok, because 'catch' is an
-- 'IO' computation.
--
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c
index cdae368150..9609ba8aec 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -477,7 +477,7 @@ lockCAF (StgRegTable *reg, StgIndStatic *caf)
// Secondly I think static thunks can't have payload: anything that they
// reference should be in SRTs
ASSERT(orig_info_tbl->layout.payload.ptrs == 0);
- // Becuase the payload is empty we just push the SRT
+ // Because the payload is empty we just push the SRT
IF_NONMOVING_WRITE_BARRIER_ENABLED {
StgThunkInfoTable *thunk_info = itbl_to_thunk_itbl(orig_info_tbl);
if (thunk_info->i.srt) {