1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

generalise letrec'

This commit is contained in:
Charlie Somerville 2018-05-21 14:52:11 -07:00
parent 12742d681d
commit dd16593763

View File

@ -107,8 +107,8 @@ letrec' :: Members '[ Allocator location value
, State (Environment location value)
] effects
=> Name
-> (Address location value -> Evaluator location value effects value)
-> Evaluator location value effects value
-> (Address location value -> Evaluator location value effects a)
-> Evaluator location value effects a
letrec' name body = do
addr <- lookupOrAlloc name
v <- localEnv id (body addr)