checkPathSystem :: Ter -> Val -> System Ter -> Typing (System Val)\r
checkPathSystem t0 va ps = do\r
rho <- asks env\r
- checkCompSystem (evalSystem rho ps)\r
- T.sequence $ mapWithKey (\alpha pAlpha ->\r
+ v <- T.sequence $ mapWithKey (\alpha pAlpha ->\r
local (faceEnv alpha) $ do\r
rhoAlpha <- asks env\r
(a0,a1) <- checkPath (constPath (va `face` alpha)) pAlpha\r
unlessM (a0 === eval rhoAlpha t0) $\r
throwError $ "Incompatible system with " ++ show t0\r
return a1) ps\r
+ checkCompSystem (evalSystem rho ps)\r
+ return v\r
\r
checks :: (Tele,Env) -> [Ter] -> Typing ()\r
checks _ [] = return ()\r