mirror of
https://github.com/github/semantic.git
synced 2024-12-11 08:45:48 +03:00
generalise letrec'
This commit is contained in:
parent
12742d681d
commit
dd16593763
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user