diff options
author | Gabor Greif <ggreif@gmail.com> | 2016-05-27 17:09:33 +0200 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2016-05-27 17:09:33 +0200 |
commit | 3f20da1c569561248ad6282111df2a2d42f34768 (patch) | |
tree | 6f7e9ab185b0d5031fbeb04bd14b00c2b761337c /compiler/simplStg | |
parent | 3a00ff92a3ee66c096b85b180d247d1a471a6b6e (diff) | |
download | haskell-3f20da1c569561248ad6282111df2a2d42f34768.tar.gz |
Typos in comments
Diffstat (limited to 'compiler/simplStg')
-rw-r--r-- | compiler/simplStg/UnariseStg.hs | 6 |
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. |