mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
fix value2term for predefined functions
This commit is contained in:
@@ -411,7 +411,7 @@ patternMatch v0 ((env0,ps,args0,t):eqs) = match env0 ps eqs args0
|
||||
return (mt,tnk:tnks)
|
||||
|
||||
value2term i (VApp q tnks) =
|
||||
foldM (\e1 tnk -> fmap (App e1) (force tnk >>= value2term i)) (QC q) tnks
|
||||
foldM (\e1 tnk -> fmap (App e1) (force tnk >>= value2term i)) (if fst q == cPredef then Q q else QC q) tnks
|
||||
value2term i (VMeta m env tnks) = do
|
||||
res <- zonk m tnks
|
||||
case res of
|
||||
|
||||
Reference in New Issue
Block a user