mirror of
https://github.com/github/semantic.git
synced 2025-01-06 06:46:07 +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)
|
, State (Environment location value)
|
||||||
] effects
|
] effects
|
||||||
=> Name
|
=> Name
|
||||||
-> (Address location value -> Evaluator location value effects value)
|
-> (Address location value -> Evaluator location value effects a)
|
||||||
-> Evaluator location value effects value
|
-> Evaluator location value effects a
|
||||||
letrec' name body = do
|
letrec' name body = do
|
||||||
addr <- lookupOrAlloc name
|
addr <- lookupOrAlloc name
|
||||||
v <- localEnv id (body addr)
|
v <- localEnv id (body addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user