Commit d6ccea98 authored by Gabor Greif's avatar Gabor Greif 💬
Browse files

Typos in comments

parent b8a40855
......@@ -1322,7 +1322,7 @@ dmdTransformDictSelSig (StrictSig (DmdType _ [dict_dmd] _)) cd
, Just jds <- splitProdDmd_maybe dict_dmd
= DmdType emptyDmdEnv [mkManyUsedDmd $ mkProdDmd $ map (enhance cd') jds] topRes
| otherwise
= topDmdType -- See Note [Demand transformer for a ditionary selector]
= topDmdType -- See Note [Demand transformer for a dictionary selector]
where
enhance cd old | isAbsDmd old = old
| otherwise = mkManyUsedDmd cd
......@@ -1330,7 +1330,7 @@ dmdTransformDictSelSig (StrictSig (DmdType _ [dict_dmd] _)) cd
dmdTransformDictSelSig _ _ = panic "dmdTransformDictSelSig: no args"
\end{code}
Note [Demand transformer for a ditionary selector]
Note [Demand transformer for a dictionary selector]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If we evaluate (op dict-expr) under demand 'd', then we can push the demand 'd'
into the appropriate field of the dictionary. What *is* the appropriate field?
......@@ -1349,7 +1349,7 @@ ghc --make; and the first module has a local -O0 flag. So you may load a class
without interface pragmas, ie (currently) without an unfolding for the class
ops. Now if a subsequent module in the --make sweep has a local -O flag
you might do strictness analysis, but there is no inlining for the class op.
This is wierd so I'm not worried about whether this optimises brilliantly; but
This is weird, so I'm not worried about whether this optimises brilliantly; but
it should not fall over.
Note [Non-full application]
......
......@@ -122,9 +122,9 @@ be anything at all.
If a low-level procedure implements the NativeNode calling convention,
then it can be called by high-level code using an ordinary function
call. In general this is hard to arrange because the calling
convention depends on the number of physical register available for
convention depends on the number of physical registers available for
parameter passing, but there are two cases where the calling
convention is platform-independnt:
convention is platform-independent:
- Zero arguments.
......
......@@ -1126,7 +1126,7 @@ wayGeneralFlags _ WayDebug = []
wayGeneralFlags _ WayDyn = [Opt_PIC]
-- We could get away without adding -fPIC when compiling the
-- modules of a program that is to be linked with -dynamic; the
-- program itself does not need to be position-independet, only
-- program itself does not need to be position-independent, only
-- the libraries need to be. HOWEVER, GHCi links objects into a
-- .so before loading the .so using the system linker. Since only
-- PIC objects can be linked into a .so, we have to compile even
......
......@@ -451,7 +451,7 @@ instFD (ls,rs) tvs tys
checkInstCoverage :: Bool -- Be liberal
-> Class -> [PredType] -> [Type]
-> Maybe SDoc
-- "be_liberal" flag says whether to use "liberal" coveragek of
-- "be_liberal" flag says whether to use "liberal" coverage of
-- See Note [Coverage Condition] below
--
-- Return values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment