1
1
mirror of https://github.com/github/semantic.git synced 2024-12-14 17:31:48 +03:00

Use a lazy pattern match in evalTerm.

This commit is contained in:
Rob Rix 2018-12-10 12:07:20 -05:00
parent 2599cfa60d
commit 7688f05e7f

View File

@ -145,4 +145,4 @@ evalTerm :: ( Carrier sig m
)
=> Open (term -> Evaluator term address value m value)
-> term -> Evaluator term address value m value
evalTerm perTerm = fst (fix (\ (ev, re) -> (perTerm (eval ev re . project), ref ev re . project)))
evalTerm perTerm = fst (fix (\ ~(ev, re) -> (perTerm (eval ev re . project), ref ev re . project)))