summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {