mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +03:00
Define a recursive case for Lambda.
This commit is contained in:
parent
181a6c777b
commit
35a3b667a7
@ -92,6 +92,11 @@ class Lambda address value effects ty | ty -> address, ty -> value, ty -> effect
|
||||
-> ty
|
||||
-> Evaluator address value effects value
|
||||
|
||||
instance (Member Fresh effects, Lambda address value effects ret) => Lambda address value effects (Name -> ret) where
|
||||
lambda' vars body = do
|
||||
var <- gensym
|
||||
lambda' (var : vars) (body var)
|
||||
|
||||
builtInPrint :: ( AbstractValue address value effects
|
||||
, HasCallStack
|
||||
, Member (Allocator address value) effects
|
||||
|
Loading…
Reference in New Issue
Block a user