diff options
author | Javran Cheng <Javran.c@gmail.com> | 2015-03-02 11:09:23 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-03-02 11:09:23 -0600 |
commit | 6cdccb4656c22aaf809e93f8ce5886153f83096e (patch) | |
tree | dbad1374c52b34345cd0e24d291fa6bad59c2583 /compiler/coreSyn | |
parent | 5692643c9d17e746327588cd6157a923642b7975 (diff) | |
download | haskell-6cdccb4656c22aaf809e93f8ce5886153f83096e.tar.gz |
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
Diffstat (limited to 'compiler/coreSyn')
-rw-r--r-- | compiler/coreSyn/CoreArity.hs | 2 | ||||
-rw-r--r-- | compiler/coreSyn/CoreSyn.hs | 2 | ||||
-rw-r--r-- | 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 5e50642ecf..47c80850a2 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 83b3600d84..32ebd8a480 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 7f09c68ca2..325950cf16 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. |