[ fix ] error messages mangled by Idris to Newt translation

This commit is contained in:
2025-07-27 14:29:14 -07:00
parent a79f92793b
commit ff23deb825
2 changed files with 4 additions and 4 deletions

View File

@@ -490,7 +490,7 @@ unify env mode t u = do
vtm <- eval Nil CBN tm
appvtm <- vappSpine vtm sp'
unify env mode t appvtm
_ => error fc' "unify failed \{show t} =?= \{show u} (no Fn :: Nil)\n env is \{show env}"
_ => error fc' "unify failed \{show t} =?= \{show u} [no Fn]\n env is \{show env}"
unifyRef t@(VRef fc k sp) u = do
debug $ \ _ => "expand %ref \{show k} \{show sp} =?= \{show u}"
@@ -500,7 +500,7 @@ unify env mode t u = do
vtm <- eval Nil CBN tm
tmsp <- vappSpine vtm sp
unify env mode tmsp u
_ => error fc "unify failed \{show t} (no Fn :: Nil) =?= \{show u}\n env is \{show env}"
_ => error fc "unify failed \{show t} [no Fn] =?= \{show u}\n env is \{show env}"
unifyRef t u = unifyRest t u
unifyVar : Val -> Val -> M UnifyResult