This commit is contained in:
John J. Camilleri
2021-02-13 00:59:15 +01:00
parent a58a6c8a59
commit d563abb928
2 changed files with 12 additions and 6 deletions

View File

@@ -138,7 +138,7 @@ eval cxt t = case t of
case (eval cxt t, eval cxt u) of
(LFTuple vs, LFInt i) -> vs !! (i-1)
(tp@(LFTuple _), LFTuple is) | all isInt is -> foldl (\(LFTuple vs) (LFInt i) -> vs !! (i-1)) tp is
(t',u') -> error $ printf "Incompatible projection:\n%s\n%s" (show t') (show u')
(t',u') -> error $ printf "Incompatible projection:\n%s\n%s" (show t) (show u)
LFArgument i -> cxt !! (i-1)
-- | Turn concrete syntax terms into an actual string