[commit: ghc] master: fix typos in coreSyn (6cdccb4)
git at git.haskell.org
git at git.haskell.org
Mon Mar 2 17:16:02 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6cdccb4656c22aaf809e93f8ce5886153f83096e/ghc
>---------------------------------------------------------------
commit 6cdccb4656c22aaf809e93f8ce5886153f83096e
Author: Javran Cheng <Javran.c at gmail.com>
Date: Mon Mar 2 11:09:23 2015 -0600
fix typos in coreSyn
Summary: fixed few typos in coreSyn, no trac number
Test Plan: validate
Reviewers: austin
Reviewed By: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D682
>---------------------------------------------------------------
6cdccb4656c22aaf809e93f8ce5886153f83096e
compiler/coreSyn/CoreArity.hs | 2 +-
compiler/coreSyn/CoreSyn.hs | 2 +-
compiler/coreSyn/CoreTidy.hs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/compiler/coreSyn/CoreArity.hs b/compiler/coreSyn/CoreArity.hs
index 5e50642..47c8085 100644
--- a/compiler/coreSyn/CoreArity.hs
+++ b/compiler/coreSyn/CoreArity.hs
@@ -437,7 +437,7 @@ ArityType 'at', then
* If at = ATop as, and n=length as,
then expanding 'f' to (\x1..xn. f x1 .. xn) loses no sharing,
- assuming the calls of f respect the one-shot-ness of of
+ assuming the calls of f respect the one-shot-ness of
its definition.
NB 'f' is an arbitary expression, eg (f = g e1 e2). This 'f'
diff --git a/compiler/coreSyn/CoreSyn.hs b/compiler/coreSyn/CoreSyn.hs
index 83b3600..32ebd8a 100644
--- a/compiler/coreSyn/CoreSyn.hs
+++ b/compiler/coreSyn/CoreSyn.hs
@@ -340,7 +340,7 @@ See #letrec_invariant#
Note [CoreSyn let/app invariant]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The let/app invariant
- the right hand side of of a non-recursive 'Let', and
+ the right hand side of a non-recursive 'Let', and
the argument of an 'App',
/may/ be of unlifted type, but only if
the expression is ok-for-speculation.
diff --git a/compiler/coreSyn/CoreTidy.hs b/compiler/coreSyn/CoreTidy.hs
index 7f09c68..325950c 100644
--- a/compiler/coreSyn/CoreTidy.hs
+++ b/compiler/coreSyn/CoreTidy.hs
@@ -261,7 +261,7 @@ Note [Preserve OneShotInfo]
We keep the OneShotInfo because we want it to propagate into the interface.
Not all OneShotInfo is determined by a compiler analysis; some is added by a
-call of GHC.Exts.oneShot, which is then discarded before the end of of the
+call of GHC.Exts.oneShot, which is then discarded before the end of the
optimisation pipeline, leaving only the OneShotInfo on the lambda. Hence we
must preserve this info in inlinings.
More information about the ghc-commits
mailing list