Skip to content

Commit fc2b71a

Browse files
KisaragiEffectiveJeffrey Young
authored andcommitted
update reference to the lifted lambda
1 parent 0fefd8f commit fc2b71a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Optimizations/GHC_opt/lambda_lifting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Thus |glift| turns into:
3737
.. code-block:: haskell
3838
3939
g_lifted a 0 = a
40-
g_lifted a n = 1 + g (n - 1)
40+
g_lifted a n = 1 + g_lifted (n - 1)
4141
4242
Now ``a`` is an input, which means that |glift| can be floated out of ``f``
4343
to the top level producing the final program:
@@ -46,7 +46,7 @@ to the top level producing the final program:
4646
4747
g :: Int -> Int -> Int
4848
g_lifted a 0 = a
49-
g_lifted a n = 1 + g (n - 1)
49+
g_lifted a n = 1 + g_lifted (n - 1)
5050
5151
f :: Int -> Int -> Int
5252
f a 0 = a

0 commit comments

Comments
 (0)