mirror of
https://github.com/github/semantic.git
synced 2024-12-14 17:31:48 +03:00
Note why the lazy pattern match.
This commit is contained in:
parent
7688f05e7f
commit
65cb08bc35
@ -145,4 +145,5 @@ evalTerm :: ( Carrier sig m
|
||||
)
|
||||
=> Open (term -> Evaluator term address value m value)
|
||||
-> term -> Evaluator term address value m value
|
||||
-- NB: We use a lazy pattern match for the lambda’s argument to postpone evaluating the pair until eval/ref is called.
|
||||
evalTerm perTerm = fst (fix (\ ~(ev, re) -> (perTerm (eval ev re . project), ref ev re . project)))
|
||||
|
Loading…
Reference in New Issue
Block a user