1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 19:55:34 +03:00

Compose in the other direction.

This commit is contained in:
Rob Rix 2018-12-10 09:46:39 -05:00
parent f96fb53501
commit 03fda04500

View File

@ -150,4 +150,4 @@ evalTerm :: ( Carrier sig m
)
=> Open (term -> Evaluator term address value m (ValueRef address value))
-> term -> Evaluator term address value m (ValueRef address value)
evalTerm perTerm = fst (fix (\ (ev, re) -> (perTerm (eval ev re . project), ref (ev >=> value) re . project >=> maybeM (throwEvalError RefError))))
evalTerm perTerm = fst (fix (\ (ev, re) -> (perTerm (eval ev re . project), maybeM (throwEvalError RefError) <=< ref (value <=< ev) re . project)))