summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2017-04-18 16:33:38 -0400
committerJoachim Breitner <mail@joachim-breitner.de>2017-04-24 16:34:26 -0400
commit583fa9e3687b49d8c779e6d53a75af9276e4f5cf (patch)
treeb677845bc133aeea6ef657ef29c8df716acda623 /ghc
parentcd10a23282499b474cedeb4f63f92e70ed9718f3 (diff)
downloadhaskell-583fa9e3687b49d8c779e6d53a75af9276e4f5cf.tar.gz
core-spec: Simplify the handling of LetRec
We do not need to keep an enrivonment around to implement letrec, as long as we only do call-by-name. Instead, evaluate letrec by substituting for all the variables with their RHS wrapped in the letrec binding. Since nothing adds to the enrivonment any more, there is no need for a S_Var rule. Differential Revision: https://phabricator.haskell.org/D3466
Diffstat (limited to 'ghc')
0 files changed, 0 insertions, 0 deletions