summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2016-05-27 17:09:33 +0200
committerGabor Greif <ggreif@gmail.com>2016-05-27 17:09:33 +0200
commit3f20da1c569561248ad6282111df2a2d42f34768 (patch)
tree6f7e9ab185b0d5031fbeb04bd14b00c2b761337c
parent3a00ff92a3ee66c096b85b180d247d1a471a6b6e (diff)
downloadhaskell-3f20da1c569561248ad6282111df2a2d42f34768.tar.gz
Typos in comments
-rw-r--r--compiler/simplStg/UnariseStg.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/simplStg/UnariseStg.hs b/compiler/simplStg/UnariseStg.hs
index 9eca76847b..d5809428dd 100644
--- a/compiler/simplStg/UnariseStg.hs
+++ b/compiler/simplStg/UnariseStg.hs
@@ -24,7 +24,7 @@ Suppose that a variable x : (# t1, t2 #).
* At the binding site for x, make up fresh vars x1:t1, x2:t2
- * Extend the UniariseEnv x :-> [x1,x2]
+ * Extend the UnariseEnv x :-> [x1,x2]
* Replace the binding with a curried binding for x1,x2
Lambda: \x.e ==> \x1 x2. e
@@ -45,7 +45,7 @@ Suppose that a variable x : (# t1, t2 #).
I think we rely on the code generator to short-circuit this
case without generating any actual code.
-Of course all this applies recursively, so that we flattn out nested tuples.
+Of course all this applies recursively, so that we flatten out nested tuples.
Note [Unarisation and nullary tuples]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -60,7 +60,7 @@ The above scheme has a special cases for nullary unboxed tuples, x :: (# #)
* If we find (# #) as an argument all by itself
f ...(# #)...
it looks like an Id, so we look up in UnariseEnv. We want to replace it
- with voidPrimId, so the convenient thing is to initalise the UniariseEnv
+ with voidPrimId, so the convenient thing is to initalise the UnariseEnv
with (# #) :-> [voidPrimId]
See also Note [Nullary unboxed tuple] in Type.hs.